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.
    
        
            
                
                    
                        
                            
                                | 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, TrueWould 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 +2ElseReturn  First(Fields!endYear.Value, "GetIndicators") +2} == Parameters!Grad.Value ) then Return  FalseElse  Return True;  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     jassie 
                                    Constraint Violating Yak Guru 
                                     
                                    
                                    332 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2014-02-04 : 13:57:17
                                          
  | 
                                         
                                        
                                          | Thanks! that helps!  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |