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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

rank problem

Dear All

I have brand and month as dimension now I want to calculate RANK for every month  following are my expression for overall

AGGR(RANK (SUM (Values), 4),BRAND)

I wan to calculate Brand wise / Month wise  Rank

How Do i acheive the same.

Thanks.

Vikas

Hello

Sample file works with  following expression

Aggr(num( rank( sum(Value ), 4)),BRAND,MonthName)

But same not working in LIVE report is not display.

Regards

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
13 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try This one:

Ex: aggr(NODISTINCT Rank(Sum(Values)),FieldName)

FieldName =  Your Group Name / Month

er_mohit
Master II
Master II

write

num( rank( sum( Values), 4))

or

num(aggr( rank( sum( Values), 4),Brand,Month)

Not applicable

rank(aggr(NODISTINCT sum(Values),Brand),4)

vikasmahajan
Author

Thanks for reply

Both are not working

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi Vikas Mahajan,

Send sample file

er_mohit
Master II
Master II

i tried above code for my components and mat id to find sum of no. of quantity and it works fine for me,here look acc. to my example

Aggr(num( rank( sum( [No. Of quantity]), 4)),mat_id,components)

try acc. to your field format like this

Aggr(num( rank( sum(Value ), 4)),Brand,Month)

hope it helps

vikasmahajan
Author

Please find qvw attached files

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
er_mohit
Master II
Master II

Because you  drag your dimension month for that reason it gives you nul value and where it find the value show that

now you simply write this code

num( rank( sum( Value), 4))

hope it helps