Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSRS 2008 R2 legend colors not matching chart series colors

Posted on 2016-10-20
4
Medium Priority
?
276 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

670 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