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: 
kenji_khoo
Partner - Contributor
Partner - Contributor

Count from Straight Table

Dear all experts,

Please refer to the table below: 

I can simply do a count(Detail No) to get the column 3.  But in column 4, I would like to have total count of Detail No by Group No. I tried aggr(count(Detail No),Group No), it doesn't work.   

Group NoDetail NoCount Detail No by Group NoTotal Count of Detail No
  4 
2002703131014
2002703132014
2002703133014
2002703134014
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try:

count( total [Detail No])

Or

count( total <[Group No]> [Detail No])

View solution in original post

2 Replies
tresesco
MVP
MVP

Try:

count( total [Detail No])

Or

count( total <[Group No]> [Detail No])

Lisa_P
Employee
Employee

It is giving you what you ask for.

What are you expecting to see ?