Solved

SSRS 2008 R2 legend colors not matching chart series colors

Posted on 2016-10-20
4
190 Views
Last Modified: 2016-10-20
I have a stacked bar chart with conditional formatting on the series fill depending on a severity field and the legend colors are not matching.  Below is my conditional formatting on the series, why does the legend not match?

=Switch(Fields!severity.Value = "Sev4", "CornflowerBlue",
Fields!severity.Value = "Sev3", "Gray",
Fields!severity.Value = "Sev2", "Gold",
Fields!severity.Value = "Sev1", "Red")
0
Comment
Question by:szadroga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Arifhusen Ansari earned 500 total points
ID: 41852224
I don't know where did you set the property.

Please find the below screenshot.

First you need to right click on series of the Graph and go to series property.

2016-10-20_20-13-52.png
Go to Fill section and set the customer color for the series there.

2016-10-20_20-14-54.png
And also please note that comparison in ssrs in case sensitive. Please check your data as well..
For your reference switch example
=Switch(
Fields!Region.Value="Canada","Purple"
,Fields!Region.Value="France","Yellow"

)

Open in new window

Hope it will help you.
0
 

Author Comment

by:szadroga
ID: 41852254
I did put my conditional logic under Series Properties > Fill.  The chart is reflecting the appropriate color logic, its the legend that just shows the same colors for each value.  Adding screenshot...

2016-10-20_11-06-24.png
0
 
LVL 13

Expert Comment

by:Arifhusen Ansari
ID: 41852281
It should work as it's working in my case.

2016-10-20_20-48-07.pngI should not ask this but still have you checked your condition for formatting is working fine.
0
 

Author Closing Comment

by:szadroga
ID: 41852309
appears it was the SWITCH statement.  I converted the logic to a nested IIF and it worked.  thx for your help
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question