Solved

SSRS 2008 R2 legend colors not matching chart series colors

Posted on 2016-10-20
4
27 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now