ssrs堆积柱形图百分比显示

时间:2015-03-31 17:05:27

标签: reporting-services charts percentage

-in Sql,我的数据集显示了这个:

   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

- 在我的堆积柱形图中:
价值观:总和(交易)
类别组:月份名称
SeriesGroup:输入

抱歉,我无法上传图片。所以,我将解释图表 - 在堆积柱形图中,我想要显示%:

的栏
the bar of Feb: 40/(40+30)=57%
           Feb: 30/(40+30)=43%    
the bar of Mar: 50/(50+20)=71%
           Mar: 20/(50+20)=29%

我在标签日期

中做了表达

= sum(Fields!Deals.Value)/ Sum(Fields!Delas.Value,“DataSet1”) 但结果是

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

任何人都可以帮助我获得57%,43%,71%,29%谢谢。

2 个答案:

答案 0 :(得分:1)

属性 - >图表系列标签 - >格式 - > ##。#0 \%

这将在堆栈图表中显示百分比符号。

答案 1 :(得分:0)

而不是" dataset1"你必须使用" Monthname" (这是catagory)。这将给你预期的输出。

如果我还面临一些问题,请告诉我。