-in SQL中,我的数据集示出该:SSRS堆积柱形图百分比显示
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我的堆叠柱形图:
值:总和(交易)
类别组:MONTHNAME
SeriesGroup :型号
对不起,我无法上传图片。所以,我要解释图表。
-in堆叠柱形图,我想棒表示%:
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%
我确实在标签日期
=总和(字段Deals.Value!)/萨姆(字段表达! Delas.Value, “数据集1”) 但结果却
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%感谢。
是的,你是对的!就我而言,我根本不需要做任何表达。我做的是1)在图表中选择了堆积百分比柱形图2) - 值:sum(交易) - 分类组:月份名称 - SeriesGroup:Type。然后SSRS将生成57%,43%,71%,29%的百分比。我没有解决的原因是在主数据集的where子句中where date> @startdate和date <@enddate>。如果我将它更改为“where date> = @ startdate and date <= @ enddate”,则会显示57%,43%,71%,29%。但是,我不明白为什么使用>而不是> =导致问题。 – 2015-04-02 13:45:27