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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
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