Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
machm384
Contributor
Contributor

Count a column depending of its value

Hi, I am trying to count how many 1s are there for  each value of column GSD_SA

I should get for X  a value of 3

and I should get  for Y a value of  6

I am using     count({<UNDER_25={'1'}>} GSD_SA_ID)     but I am getting a weird result. Ideas?

GSD_ACCT_ID     GSD_SA_ID     UNDER_25

1X0
1X0
1X1
1X1
1X1
1X0
1X0
1X0
1X0
1X0
1X0
1X0
1X0
2Y1
2Y1
2Y1
2Y1
2Y1
2Y0
2Y1
2Y0
2Y0
2Y0
1 Reply
sunny_talwar

Have you just tried Sum(UNDER_25)?