Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ttttttyyyy
Contributor
Contributor

How do i display MTD, QTD, YTD sum of Top 10 values of a category

I tried to use this code for MTD Top 10 values of a category but I am unable to get the results. 

 

=Sum({<CUSTOMERGROUPNAME ={=Rank(Sum({$<AS_OF_DATE= {$(=max(as_of_date))}>}total_revenue))<=10})total_revenue)

Labels (1)
4 Replies
edwin
Master II
Master II

are these two different fields?

AS_OF_DATE

as_of_date

edwin
Master II
Master II

or was it a typo?

ttttttyyyy
Contributor
Contributor
Author

They are the same field
ttttttyyyy
Contributor
Contributor
Author

I wanted to use the above formula to calculate current month MTD sum of Top values