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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ValeriaBonini
Partner - Creator
Partner - Creator

Ranking vendors

Hi, I have a formula like this:

=rank(total(PRICE))

How can I show the rank based on the total? My output should be like this:

VENDOR PRICE RANK

AAA 45 2/4

BBB 34 3-4/4

CCC 67 1/4

DDD 34 3-4/4

I think that should be something like:

=rank(total(PRICE))&'/'& RowNo() but it doesn't work...

Labels (6)
2 Replies
Aditya_Chitale
Specialist
Specialist

try :

rank(total(PRICE)) & '/' & count(total any_dimension)

Regards,

Aditya

hic
Former Employee
Former Employee

Is PRICE a field or a measure? If it is a field, you may need to change the expression to

Rank( total Avg(PRICE) ) & '/' & Count(total VENDOR)

Note that Rank() takes an aggregation as first parameter. Note also that there is no function 'total'.