Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 12th, 2006, 08:49 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chart Axis label Colour

Hello

I have a chart on a report that shows value of sales on the Y Axis. The value can be a positive or negative amount. I want the Label colour for the Y Axis to show negative amounts in Red and Positive in black.

My problem is i can not seem to find the correct syntax within the expression.

eg if i was doing the same thing to based on a field i would use IIF(Fields!FieldName.value <0, "RED"< "BLACK"). How do i write the expression to say if the Y Axis label shows less than zero to make the colour Red?

Can any one help me on this? Let me know if you need any more info and i can post what you need.

Thanks in advance

Dave Munro

Reply With Quote
  #2 (permalink)  
Old September 28th, 2006, 03:30 PM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

=IIF(Fields!FieldName.value < 0, "RED", "BLACK")

lookout for typo's

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[VB2005]adding second y-axis to chart bellaelysium VB How-To 2 June 17th, 2008 01:16 AM
Coloring the chart plot area based on x-axis scale simranjeev Reporting Services 1 October 25th, 2007 02:50 PM
How to hide Series label in a chart roy_mm Reporting Services 0 March 21st, 2007 02:10 AM
Problem in formating Y axis of Chart mayuri Crystal Reports 0 December 26th, 2005 08:15 AM
Adding a second value axis to chart..? rstober Excel VBA 0 October 1st, 2003 02:47 PM



All times are GMT -4. The time now is 07:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.