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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sibin_jacob
Creator III
Creator III

Max value name Expression

Hai,

I need the physician name having max volume(physician name having the max volume based on time period and geo selection.)

How to get the  max value physician name dynamically?

Thanks,

Sibin Jacob.C

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use this expression

=FirstSortedValue(SalesMan, -Aggr(Sum(Sales), SalesMan))

It is working for me.

PFA file for the same.

Regards,

Jagan.

View solution in original post

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use FirstSortedValue() for this.

=FirstSortedValue(Physician, -Sum(Volume))

Hope this helps you.

Regards,

Jagan.

sibin_jacob
Creator III
Creator III
Author

HaI Jagan,

I tried this one, but still not working!

not getting any value... I need the physician name in text object..

jagan
Partner - Champion III
Partner - Champion III

Hi,

Use this expression

=FirstSortedValue(SalesMan, -Aggr(Sum(Sales), SalesMan))

It is working for me.

PFA file for the same.

Regards,

Jagan.

sibin_jacob
Creator III
Creator III
Author

Thanks Jagan... It's working fine.....