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: 
Not applicable

Finding a Rank

hi all

i want to find out Rank of Sales according State without Taking State as dimension in Table

am attaching QVW file  And data File

i have Find out by including  State dimension  in Table

is it possible???

Finding a Rank according to that Dimension Without including That dimension in Table

Thanks in Advance

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

You're trying to replicate the rank when you add State as your dimension on your table? Then you want to go with Manish Kachhia's formula but with Person and State reversed:

Aggr(Rank(Sum(Sales)),State,Person)

You might also want to rank each state without Person in consideration using the formula:

Aggr(Nodistinct Rank(SUM(Sales)),State)

Please find attached.

Hope this helps!

View solution in original post

5 Replies
MK_QSL
MVP
MVP

Aggr(Rank(SUM(Sales)),Person,State)

sundarakumar
Specialist II
Specialist II

Hi,

PFA,

Add

=aggr(rank(sum(Sales)),State)

as expression , if you use it as expression you will see it is shown only once for every state,

if you want to show it in every coloum plese use the same in the calculated dimension.

-Sundar

jerem1234
Specialist II
Specialist II

You're trying to replicate the rank when you add State as your dimension on your table? Then you want to go with Manish Kachhia's formula but with Person and State reversed:

Aggr(Rank(Sum(Sales)),State,Person)

You might also want to rank each state without Person in consideration using the formula:

Aggr(Nodistinct Rank(SUM(Sales)),State)

Please find attached.

Hope this helps!

Not applicable
Author

Thanks jerem for Your Fast reply

sunilkumarqv
Specialist II
Specialist II

Hi,


check this

Aggr(Rank(Sum(Sales)),State,Person)