在唯一的行组中,我尝试使用以下表达式获取备用行颜色:
背景颜色的表达式: =IIf( RunningValue (Fields!SP.Value, CountDistinct, Nothing) MOD 2, "White", "blue")
SQL code:
select
ROW_NUMBER() OVER (ORDER BY DataDate) AS SSRSRowNumber
,datepart(dw,datadate) SSRSDateFilter
,DataDate
,SP
,sum(TMI) as TotalCI
from table
where DataDate>GETDATE()-20
group by DataDate,SP
order by 1, 2
Run Code Online (Sandbox Code Playgroud)
结果是下面的图片,上面列出的表达式有什么问题?
编辑-:解决方案