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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
satishqlik
Creator II
Creator II

aggr

Hi,

I have a table contains id, department, date, amount

In pivot table, My dim is department and expression sum(amount)

and added count(id) as my second dimension

am trying to show in my calculated dimension,Count(id) of Max(Month) for each department.


how do we achieve this?? 

PFB for your reference!!

Please suggest.!!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

For the sample you attached

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be this

=Aggr(If(Month = Max(TOTAL <dept> Month), Count(id)), dept, Month)

Capture.PNG

sunny_talwar
MVP
MVP

For the sample you attached

satishqlik
Creator II
Creator II
Author

Thanks Sunny !!!!