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  | 
                             
                            
                                    | 
                                         infodemers 
                                        Posting Yak  Master 
                                         
                                        
                                        183 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2013-11-19 : 16:10:32
                                            
  | 
                                             
                                            
                                            Hi,I wish to change the background color when a duplicate based on two columns values is created.I have tried the following but no success.=NPANXX(Count(Fields!NPA.Value & Fields!NNX.Value, "NPANNX") >1, "LightBlue") Thanks! | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     visakh16 
                                    Very Important crosS Applying yaK Herder 
                                     
                                    
                                    52326 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-11-20 : 02:21:54
                                          
  | 
                                         
                                        
                                          | I think you need to use rowNumber function for this.Something likeIIF(RowNumber("YourGroupName") > 1 ,"LightBlue","Whatever color you want")------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     infodemers 
                                    Posting Yak  Master 
                                     
                                    
                                    183 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-11-20 : 11:10:29
                                          
  | 
                                         
                                        
                                          | Hi Visakh16,Thanks for helping me with this.I have a question. Am I okay when creating the Group(NPANNX) to write the expression =Fields!NPA.Value+Fields!NPA.ValueWhen I write for the background properties your suggestion:IIF(RowNumber("NPANNX") > 1 ,"LightBlue","Transparent")It highlights all the rows except the first one.Thanks  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     visakh16 
                                    Very Important crosS Applying yaK Herder 
                                     
                                    
                                    52326 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-11-20 : 13:07:03
                                          
  | 
                                         
                                        
                                          quote: Originally posted by infodemers Hi Visakh16,Thanks for helping me with this.I have a question. Am I okay when creating the Group(NPANNX) to write the expression =Fields!NPA.Value+Fields!NPA.ValueWhen I write for the background properties your suggestion:IIF(RowNumber("NPANNX") > 1 ,"LightBlue","Transparent")It highlights all the rows except the first one.Thanks
  What according to you are duplicates?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     infodemers 
                                    Posting Yak  Master 
                                     
                                    
                                    183 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-11-20 : 13:14:11
                                          
  | 
                                         
                                        
                                          | Let's say I have a table as follow:NPA|NNX|Cie|remarks|418|220|abc|pending|418|220|abc|completed|418|222|abc|open|418|223|def|closed|I wish to see the duplicates based on the combination of NPA and NNX.In my example, the NPA 418 and NNX 220 are in blue.Thanks!  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     infodemers 
                                    Posting Yak  Master 
                                     
                                    
                                    183 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-11-20 : 14:04:04
                                          
  | 
                                         
                                        
                                          Hi,I got it to work using the following expression:=Switch(Count(Fields!NPA.Value+"-"+Fields!NNX.Value, "NPANNXID") > 1, "LightBlue", Count(Fields!NPA.Value+"-"+Fields!NNX.Value, "NPANNXID") = 1 , "Transparent") Thanks!  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |   
     
     
            
              
	     |  
		
			
     
          
		 |