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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
ValeriaBonini
Partner - Creator
Partner - Creator

New column with ranking

Hi, i have a table that looks like this:

VENDOR       PRICE

aaa                50

ggg                 76

eee                22

 

and i would like to have a new column with a rank based on the price for the vendor: (made with set analisys not in the script)

VENDOR      PRICE      RANK

aaa                50             2

ggg                 76             1

eee                22              3

 

how can i do this?

Labels (5)
7 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can try : Rank(TOTAL PRICE)

Help users find answers! Don't forget to mark a solution that worked for you!
vinieme12
Champion III
Champion III

As below

Rank(Sum(Price),4,2)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
ValeriaBonini
Partner - Creator
Partner - Creator
Author

If i use this, if i clik on another column it will change my ranking, i want it to be all the same based on total price and not other fields

ValeriaBonini
Partner - Creator
Partner - Creator
Author

If i use this, if i clik on another column it will change my ranking, i want it to be all the same based on total price and not other fields

vinieme12
Champion III
Champion III

As below

 

Aggr({<Vendor=>} Rank(Sum({<Vendor=>}Price),4,2), Vendor)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Rank(Total Sum({<VENDOR=>} PRICE))

Help users find answers! Don't forget to mark a solution that worked for you!
ValeriaBonini
Partner - Creator
Partner - Creator
Author

My formula is like this:

=rank(total([PRICE]))

How can i make it static? i want it to ignore all selections made by the user