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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
1600eads
Contributor III
Contributor III

daily avg users KPI based on a date

I am trying grab the daily average user. 

I am able to do this by a simple expression - =avg(aggr(avg( USER_ID), SNAPSHOT_DATE))

But now, I want to incorporate a set analysis or a condition to grab these users from different countries

e.g. =avg(aggr(avg({<COUNTRY ={'JAPAN'} >}USER_ID), SNAPSHOT_DATE))

but am getting a very high number that is incorrect. Any guidance/feedback will be helpful. Thank you.

Labels (3)
1 Reply
marcus_sommer
MVP
MVP

You may need to add the condition to each aggregation-part of the calculation, which may look like:

avg({ Set } aggr({ Set } avg( { Set } Field), Dim))