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: 
rougeherring
Contributor III
Contributor III

Measure within Line Graph to show each of the top 5 performers trend over time

I'd like to create a line graph with 5 measures, one for each of the current top sales people. 

Number 1,2,3,4 and 5 performing salesperson sum([Sales])

based on [Current Report Flag] = {1}, [Product] = {"$(vProductSelected)"} , [Marketname] =  {"$(vMarketSelected)"}

My Rank set analysis is not working.

Labels (2)
1 Reply
rougeherring
Contributor III
Contributor III
Author

The code that is not working is (Example for the #3 position)

=SUM({<[Salesperson]= {"=Rank(

Sum({$<[Marketname] = {"$(vMarketSelected)"},[Product] = {"$(vProductSelected)"},[Current Report Flag]={1}>}[Sales])

)=3"}, [Marketname] = {"$(vMarketSelected)"},[Product] = {"$(vProductSelected)"}

>} [Dollar Sales Share])