Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

How to create a percent on a column graph chart?

$
0
0

I have a column graph chart in SSRS 2008 R2 and now I want to display the values as a percent.  Currently it just displays the sum totals.  My dataset looks like:

people_count	facility	met_reqs
12	Chattanooga, TN	0
9	Clarksville, TN	0
6	Columbia, TN	0
51	Chattanooga, TN	1
22	Clarksville, TN	1
28	Columbia, TN	1

As you can see, each city has two rows: the first row is the count of persons who did not meet requirements and the second row is for each city which did meet reqs.

Where my last query is:

select 
count(distinct people_id) as people_count,
facility,
case when total_los/total_visits *3/7 >= 1 then 1 else 0 end met_reqs
from #final
group by facility, case when total_los/total_visits *3/7 >= 1 then 1 else 0 end

Currently I have this chart to display the sum of people_count for Chart Values, Category Group = facility, and Series Group = met_reqs.

This looks like:

But now for the Y-axis I want this to instead display percentage of persons/facility who met the requirements.  How can I do this?  So the Y-axis should instead have a range of 0-100%.


Ryan D


Viewing all articles
Browse latest Browse all 24955

Trending Articles



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