Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
belromvar
Contributor II
Contributor II

Nested aggr??

Hi everyone,

I am new in Qlikview and I am trying to achieve the following: create a report that shows the number of areas visited by x number of uses.

My data looks like this:

UserArea
U1B1
U1B2
U2B2
U2B2
U2B2
U3B3
U4B1
U4B2
U4B3

So far I just had success by applying  the following function Aggr(count(DISTINCT Area),User) to group my data by user and # of areas visited. Result:

User  NumberOfAreasVisited

U1          2

U2          1

U3          1

U4          3

My goal is to display a pie chart showing the number of areas visited by the users, something like: 2 users visited 1 area, 1 user visited 2 areas and 1 user visited 3 areas:

#areasvisited   #users

1                         2

2                         1

3                         1

any ideas/suggestions on how can I achieve that?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Calculated Dimension: Aggr(count(DISTINCT Area),User)

Exp: Count( Distinct User)

Capture.PNG

View solution in original post

2 Replies
tresesco
MVP
MVP

Calculated Dimension: Aggr(count(DISTINCT Area),User)

Exp: Count( Distinct User)

Capture.PNG

belromvar
Contributor II
Contributor II
Author

Thanks Tresesco it works 😃