Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 ssrs iif

Author  Topic 

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2014-02-04 : 12:51:40
The following iif statement is contained within a visibility expression for a row of a SSRS 2012 report:

=IIF(IIF(Rownumber("GetIndicators")=0, 9999, First(Fields!endYear.Value, "GetIndicators")) + 2 = Parameters!Grad.Value, False, True

Would you explain to me the logic in this iif statement?

MuMu88
Aged Yak Warrior

549 Posts

Posted - 2014-02-04 : 13:28:40
Here is pseudo code translation:


If (
{
If (Rownumber("GetIndicators") == 0) then
Return 9999 +2
Else
Return First(Fields!endYear.Value, "GetIndicators") +2
}
== Parameters!Grad.Value ) then
Return False
Else
Return True;


Go to Top of Page

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2014-02-04 : 13:57:17
Thanks! that helps!
Go to Top of Page
   

- Advertisement -