ssrs-expression

SSRS Field Expression to change the background color of the Cell

只谈情不闲聊 提交于 2019-11-26 23:07:23
问题 I'm trying to write a field expression for a Cell in my report where I have to change the background color of the cell depending on the string value in the cell. Ex: if the column has a value 'Approved' in it, the cell should show a green background color. I tried the following: = IIF(fields!column.value = "Approved", "Green") and = IIF(Fields!column.Value, "Approved", "Green") Neither works.. I know i'm missing something in the syntax.. Probably I'm not refering green to the back ground

SSRS Expression Divide by Zero Error

佐手、 提交于 2019-11-26 06:44:00
问题 I have a tablix box that has a division expression. When dividing by zero or nulls I get #Error displayed in my report. I tried to create an IIF statement and tested with static values. This verified my syntax was correct but I still see the error on my reports. =IIF(Sum(Fields!CY_Dollars.Value)=0, 0, (Sum(Fields!CY_Dollars.Value) - Sum(Fields!PY_Dollars.Value))/(Sum(Fields!PY_Dollars.Value))) So I\'m taking Current year dollars, subtracting Previous year dollars, and dividing that total by