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

Find Min value and retrieve other field in same record

I have the table chart like this:

ProductoSupplierMin(Amount)
A1574
A21504
A3897
B1175
B264
B3398
C12248
C2467
C3302

I tried to use the FirstSortedValue to get the supplier have the min amount in each Producto, but it didn't work: =FirstSortedValue(Supplier, Aggr(DISTINCT Min(Amount), Producto))

The expected output:

ProductoSupplierProduct MinAmount
A1574
B264
C3302
1 Solution

Accepted Solutions
kumarnatarajan
Partner - Specialist
Partner - Specialist

3 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

PFA.

tresesco
MVP
MVP

PFA

Not applicable
Author

Thanks Kumar and tresesco!