Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2006, 08:49 AM
Registered User
 
Join Date: Sep 2006
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

 
Old September 28th, 2006, 03:30 PM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

lookout for typo's






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.