Solved

SSRS 2008 R2 legend colors not matching chart series colors

Posted on 2016-10-20
4
58 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
  • 2
  • 2
4 Comments
 
LVL 12

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 12

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

825 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