reporting services - ssrs stacked column chart percentage display -


-in sql, dataset showing this:

   monthname, type, monthnumber, yearnumber, deals    feb        used      2          2015      40    feb        new       2          2015      30    mar        used      3          2015      50    mar        new       3          2015      20 

-in stacked column chart:
values: sum(deals)
category group: monthname
seriesgroup: type

sorry, not able upload picture. so, going explain chart.
-in stacked column chart, want bar showing %:

the bar of feb: 40/(40+30)=57%            feb: 30/(40+30)=43%     bar of mar: 50/(50+20)=71%            mar: 20/(50+20)=29% 

i did expression in label date

=sum(fields!deals.value)/sum(fields!delas.value, "dataset1") result

the bar of feb: 40/(40+30+50+20)=28%            feb: 30/(40+30+50+20)=21%     bar of mar: 50/(40+30+50+20)=35%            mar: 20/(40+30+50+20)=14% 

can me 57%,43%,71%,29% thanks.

instead of "dataset1" have use "monthname" (which catagory). give u expected output.

let me know if still ur facing issues.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -