2012-10-10 95 views
0

我有一个查询返回类似下面的数据集:SSRS 2008:表达式来确定图表中的横条宽度?

WaitTimeGroup WaitTimeGroupID  WaitTimeGroupNotify Count 
upto 1h   1     0      0 
upto 2h   2     0      5 
upto 3h   3     0      15 
upto 3h30m  4     1      3 
upto 3h45m  5     2      2 
upto 4h   6     3      1 
upto 6h   7     0      9 
upto 12h  8     0      0 
over 12h  9     0      0 

然后被用于使用SSRS 2008,显示如下图:

enter image description here

我想是能够做到的是让非灰色的酒吧变宽,特别是鲜红色的酒吧。颜色由WaitTimeGroupNotify值确定。

我已经尝试在PixelPointWidth CustomAttribute属性中设置表达式,虽然这显示所有酒吧具有相同的宽度。

这是可能使用SSRS 2008或者可能通过修改我的数据集来实现吗?

回答

0

尝试设置宽度(CustomAttributes -> PointWidth)动态使用表达式,类似于下面的内容:

= IIF(CInt(Fields!WaitTimeGroupNotify.Value)=3,.2,1.98) 

...你需要进行试验以达到所需的PointWidth值。

+0

害怕这没有奏效。 – mheptinstall