Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
BD1
Contributor
Contributor

Count Values across multiple columns

Hi all,

Little bit stuck, hoping someone can point me in the right direction.

I have a table with customer IDs in the first column followed by 10 columns with characteristics, all 10 columns are the same (but named rule 1, rule 2, rule 3 etc) and I would like to count the number of times A B C D E F or G occurs across all columns.

Thanks

 

BD

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Some sample data will help us understand how the data look like.

If possible please share the sample data along with expected result.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
BD1
Contributor
Contributor
Author

Thanks Kaushik, please see below:

IDRule 1Rule 2Rule 3Rule 4 
001ACFB 
002BA   
003A    
004BA   
005CA   
006FAFB 
007DAB  
008EB   
009EB   
010A    
      
Expected result:    
      
i.e. total count of A's across all columns, so for A this would be 8