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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

Ranking based on a conditional expression possible ?

 I have a  pivot table with 2 dimensions.  Line1, Line2    

 Column is : Company 

 I have a variable slider :  vSlider       Values ranging from 0- 10 that controls the number of companies to display 

 

                                   Company A      Company B     Company C

Line1 >     

    Line2>            

   

Expression is : sum ( sales) 

 

 The ranking of the entire table needs to be based on this expression :  

 If  Line1 = 'abc' ,  rank(sales)

This expression is used in 'Sorting' for  'Company' dimension but it only ranks  when Line1 'abc' is selected. 

How can I get the entire pivot table to rank based on this expression ? 

Show top 'N' companies by sales based on Line1='abc' 

 

                 

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

The correct syntax for the expression would be

If(Line1 = 'abc', rank(sales))

but perhaps you need

Rank(If(Line1 = 'abc', sales))

 

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Sue_Macaluso
Community Manager
Community Manager

Is this referring to QlikView or Qlik Sense? I would like to move it to the appropriate product forum as this is a general discussion forum and it will get more attention there.
Did you find a solution to your question? Mark the solution as accepted : and if you found it useful, press the like button!
claudialet
Contributor III
Contributor III
Author

Qliksense