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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
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.!!

1 Solution

Accepted Solutions
sunny_talwar

For the sample you attached

View solution in original post

3 Replies
sunny_talwar

May be this

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

Capture.PNG

sunny_talwar

For the sample you attached

satishqlik
Creator II
Creator II
Author

Thanks Sunny !!!!