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

How to get a max value

Hi All,

From below table I only want to show the max value of Procedure as a single row in a straight table.

HRGProcedurePDAmount
BMT_AlloRelDiagnosis - ZZZEL£29,363
BMT_AlloRelX336-AllogeneicEL£299,320
BMT_AlloRelX711-PROCUREMENT EL£32,544
Total£361,228

Expected output:

BMT_AlloRelX336-AllogeneicEL£299,320

Thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

use expression

=aggr(max(PD Amount),HRG)

this should do

View solution in original post

3 Replies
Anonymous
Not applicable
Author

use expression

=aggr(max(PD Amount),HRG)

this should do

tresesco
MVP
MVP

Dimension: HRG

Exp1: FirstSortedValue(Procedure, -[PD Amount])

Exp2: FirstSortedValue(PD, -[PD Amount])

Exp3: Max([PD Amount])

While there would be multiple data points against each combination, you might have to use sum() along with max() and firstsortedvalue() and yes aggr() would be required there.

Anonymous
Not applicable
Author

What about this one:

=max( {total HRG} [PD Amount])