2015-11-03 73 views
0

這是我目前的表現添加一個IIF語句或WHERE子句中

=IIf(Fields!Units_Sold.Value = 0, 0, Fields!Total_Incidents.Value/IIf(Fields!Units_Sold.Value = 0, 1, Fields!Units_Sold.Value)) 

我需要添加這些領域!.TECHNOLOGY =「有線」上面的說法我嘗試了幾個不同的東西,但沒有成功。

+0

解釋你必須過濾。您是否需要在技術有線的情況下銷售的總事件/總單位? –

+0

是,在技術=有線的情況下銷售的總事件/銷售總量 – D4TAM4X

回答

0

試試這個:

=IIf(Sum(iif(Fields!technology.Value = "wired",Fields!Units_Sold.Value,0)) = 0, 
0, 
sum(iif(Fields!technology.Value="wired",Fields!Total_Incidents.Value,0))/
IIf(Sum(iif(Fields!technology.Value = "wired", 
Fields!Units_Sold.Value,0)) = 0, 1, 
Sum(iif(Fields!technology.Value = "wired",Fields!Units_Sold.Value,0)) 
) 
) 

它不是測試,但應該工作。讓我知道如果這可以幫助你