Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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 (4)
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])