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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

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

jassie
Constraint Violating Yak Guru

332 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?

MuMu88
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
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 - 02/04/2014 :  13:57:17  Show Profile  Reply with Quote
Thanks! that helps!
Go to Top of Page
  Previous Topic Topic Next 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.03 seconds. Powered By: Snitz Forums 2000