Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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)?