【问题标题】:SSRS 2008: Expression to determine width of bar in chart?SSRS 2008:确定图表中条形宽度的表达式?
【发布时间】:2012-10-10 16:25:21
【问题描述】:

我有一个查询,它返回如下数据集:

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 显示以下图表:

我希望能够做的是使非灰色条变宽,尤其是鲜红色条。颜色由 WaitTimeGroupNotify 值确定。

我尝试在 PixelPointWidth CustomAttribute 属性中设置一个表达式,尽管这会显示所有具有相同宽度的条形。

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

【问题讨论】:

    标签: sql sql-server-2008 reporting-services charts ssrs-2008


    【解决方案1】:

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

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

    ...您需要尝试达到所需的 PointWidth 值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多