Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuser222
Creator
Creator

Help with straight table/Rank function

Hi All,

I have a requirement whee i need to show a special character only on the top row of the table where amount is maximum. 

Can anyone please help me to understand how to solve it?

PFA which has detailed description.

 

 

Thanks

Labels (3)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

if both values are the same why would you want only 1 to be shown as top?
but if it s mandatory change the mode
If(Rank(TOTAL Sum(Amt
),4)=1,'@')

View solution in original post

5 Replies
dplr-rn
Partner - Master III
Partner - Master III

Use expression like below

If(Rank(TOTAL Sum(Amt
))=1,'@')

with current data first 2 rows will have @

qlikuser222
Creator
Creator
Author

Thanks for the Reply,

 

how can i show @ only on he first row?

 

Thanks

dplr-rn
Partner - Master III
Partner - Master III

if both values are the same why would you want only 1 to be shown as top?
but if it s mandatory change the mode
If(Rank(TOTAL Sum(Amt
),4)=1,'@')
qlikuser222
Creator
Creator
Author

Thanks

 

Can i please know why did you put 4? what does it do? do we need to change 4 to something else when we have million records in table?

 

Thanks

dplr-rn
Partner - Master III
Partner - Master III

No you dont need to change.
it is mode argument in rank function
https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/ChartFunctio...

Mode 4, basically return 1,2,3,4... even if 1 and 2 values are the same.
check the link for what more details.