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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sergio0592
Specialist III
Specialist III

Count cases by number of events

Hi all,

I'd like to reach something but it doesn't works. I have a chart with a Key_ID (dimension) and an expression (=sum(NB_EVENTS)). I want get a count of cases (count Key_ID) for each value expression.

See pictures below:

Present.jpg

Expected:

Expected.jpg

Thanks for your answers

Regards

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use a calculated dimension in a straight table chart:

=Aggr( Sum(NB_EVENTS), KEY_ID)

and as expression

=Count(DISTINCT KEY_ID)

View solution in original post

2 Replies
swuehl
MVP
MVP

Use a calculated dimension in a straight table chart:

=Aggr( Sum(NB_EVENTS), KEY_ID)

and as expression

=Count(DISTINCT KEY_ID)

sergio0592
Specialist III
Specialist III
Author

It works perfectly!! A great thanks to you.