Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
lylererger
Creator II
Creator II

Conditional Expression

Hi.
I'm searching for the way to show dimention value in text box.
I've got currency rates by banks in single table. And my problem is to show the bank with the best rate.
My expression looks like: max(aggr(sum(Rate),Bank)).

Thnx.

1 Solution

Accepted Solutions
bertdijks
Partner - Contributor III
Partner - Contributor III


HI See Attached example,

I loaded a few Lines

LOAD * INLINE [
    Bank, Rate
    A, '0,7'
    B, '0,8'
    C, '0,5'
    D, '1,2'
    E, '1,1'
]
;

I want Bank D to show as the bank with the highest rate

First I determen the row containing the highest rate:

fieldindex( 'Rate', max(Rate) ))--> row number 4

Finnaly I retrieve the value of Bank in the 4th row:

Fieldvalue('Bank',fieldindex( 'Rate', max(Rate) ))

Kind regards,

Bert

View solution in original post

6 Replies
ThornOfCrowns
Specialist II
Specialist II

And what does that expression bring back?

lylererger
Creator II
Creator II
Author

Best Banks Rate I think.

anbu1984
Master III
Master III

Can you post your data, Current result and Expected result?

fkeuroglian
Partner - Master
Partner - Master

Please put an example to understando and can help you

lylererger
Creator II
Creator II
Author

I hope it helps.

bertdijks
Partner - Contributor III
Partner - Contributor III


HI See Attached example,

I loaded a few Lines

LOAD * INLINE [
    Bank, Rate
    A, '0,7'
    B, '0,8'
    C, '0,5'
    D, '1,2'
    E, '1,1'
]
;

I want Bank D to show as the bank with the highest rate

First I determen the row containing the highest rate:

fieldindex( 'Rate', max(Rate) ))--> row number 4

Finnaly I retrieve the value of Bank in the 4th row:

Fieldvalue('Bank',fieldindex( 'Rate', max(Rate) ))

Kind regards,

Bert