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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression

Hi,

Can someone please help me with this requirement.

ID       No       Payment

10000     2         4000
10000     3         500
10000     4         50
10000     7         5000

I want to display Payment as 4000 for ID = 10000, since 3 is the min(Num).
How can I do this at expression level.

Thanks in advance.

Regards,

Adi

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Try this expression with ID as your Dimension:

=Avg(If(Aggr(Min(No), ID) = No, Payment))

Capture.PNG

maxgro
MVP
MVP

FirstSortedValue(Payment, No)

Not applicable
Author

Thank u Massimo!!