Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

Define legend Color Based on Value from Dataset field

$
0
0

Hi All,

I found a very beautiful Reply here by Tony. I needed this and will incorporate

http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8fb78975-d36e-49a0-b546-df0a7acaa520

But, i have a small other request.

1. I want the color in the graph based on the value of the column in a dataset. In below example, i am looking for keyword "All" if it matches the color should turn Red

Ex. i have a column abc, it has three values India_All, Africa_Partial and Asia_All,

I am using the below expression in PickColor part of Fill Section of Series Properties.

=Switch(Fields!OnTrack.Value Like "*All*","Red")

For Some Reason its Not Turning Red. Also this is same as that of below request.

2. I have a DataSet which Returns Two fields.

Work_Id, Status

1            Due

123        Due

111        Due

12          progress

34          progress

88          Progress

99          Closed

100        Closed

Now i want a Pie Graph which should show me the percentage of each Work_ID falling under each status. I can get the count, but not able to get percentage

Ex. 3 Work_Id in Due gives 37.5%, 3 Work_ID in Progress gives 37.5% and 2 Work_ID's in CLosed accumulates to 25%

Below Is a sample Example Graph.

I am sorry for asking too much, but your guideliness would help to learn things. thank you.


Thanks & Regards,
Manjunath C Bhat,
http://manjunathcbhat.blogspot.com
http://manjunathcbhat.wordpress.com


Viewing all articles
Browse latest Browse all 20764


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>