SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 ssrs iif
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

325 Posts

Posted - 02/04/2014 :  12:51:40  Show Profile  Reply with Quote
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?

Aged Yak Warrior

549 Posts

Posted - 02/04/2014 :  13:28:40  Show Profile  Reply with Quote
Here is pseudo code translation:

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

Go to Top of Page

Constraint Violating Yak Guru

325 Posts

Posted - 02/04/2014 :  13:57:17  Show Profile  Reply with Quote
Thanks! that helps!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000