write an expression to check if the any of the value in the group is false

谁说胖子不能爱 提交于 2019-12-23 23:19:05

问题


want to write an expression in an SSRS 2008 textbox to check if any of the value in a field in a group is false. If false stop and change the background color of the Textbox.

i am trying to do

    =iif(field!coloumnname.value="False","Red","silver")

The above expression is taking the top most value in the group and giving the output.

I mean if the value is True , it is giving silver background. Can anyone help me out


回答1:


Just use the min function in the group level background property:

=iif(min(Fields!Value.Value, "GroupName") = "False", "Red", "Silver")

This should give you the functionality required.



来源:https://stackoverflow.com/questions/12591696/write-an-expression-to-check-if-the-any-of-the-value-in-the-group-is-false

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!