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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dolly123
Creator II
Creator II

set analysis

how to write last 6 month set analysis with top avg sales  with combined ?

4 Replies
ift_isabelle
Partner - Creator III
Partner - Creator III

Can you explain what you want to show?

The average sales of the last 6 months?
The top x clients sales of the last 6 months?
Something else?

Dolly123
Creator II
Creator II
Author

Yes top 10 avg sales of last 6 month 

ift_isabelle
Partner - Creator III
Partner - Creator III

AVG({<Date = {">=Addmonths(monthstart(Today()),-6)"}, Client={"=Rank(sum({<Date = {">=Addmonths(monthstart(Today()),-6)"}>} Sales)<11"}>}Sales)

Something like this?

khaoulaaa
Partner - Contributor III
Partner - Contributor III

Hello @Dolly123 

I agree with @ift_isabelle  for the first part of the expression  

AVG({<Date = {">=Addmonths(monthstart(Today()),-6)"}>}Sales) you can also use max(Date) instead of today().

but for the rank I think you can use graphics properties

1- sort result like this : 

khaoulaaa_0-1674139288786.png

2-  limit the number of values displayed for the dimension : 

khaoulaaa_1-1674139371518.png