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: 
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

3 Replies
sunny_talwar

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!!