2012-10-10 83 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