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

minimum value if

Hi,

I'd like to display only the information from the same record. Example below are different packages/ dimensions.

VPNART: the key (ProductID)

VPACEH: QTY in box

VPVUIT: 1 = we can handle/  0 we can't handle

... rest are dimensions/ weight

min.value VPACEH where VPVUIT = 1

Example of what I want to display with an expression: 

VPNARTVPACEHSTREEPVPVINSVPVUITVPHVRPVPBVRPVPDVRPVPGVRP
0113301-10111207312523
0113315-311471542111152
0113321-1019104141116

INPUT

VPNARTVPACEHSTREEPVPVINSVPVUITVPHVRPVPBVRPVPDVRPVPGVRP
0113301-10111207312523
0113305-311542153192908
01133020-61060606060
0113301320-911145080012000
0113311-10011149208231
0113315-311471542111152
0113321-1019104141116
01133210-311821121491173

Which expression displays the information I want...?

Many thanks for your help.

1 Solution

Accepted Solutions
Nicole-Smith

You can get it by using FirstSortedValue() like this:

FirstSortedValue({<VPVUIT={1}>}VPACEH,VPACEH)

Please see the attached example for a full solution.

View solution in original post

3 Replies
Nicole-Smith

You can get it by using FirstSortedValue() like this:

FirstSortedValue({<VPVUIT={1}>}VPACEH,VPACEH)

Please see the attached example for a full solution.

stevenpiers
Contributor III
Contributor III
Author

Just... perfect! Thanks Nicole!

rupamjyotidas
Specialist
Specialist

Maybe you can close the discussion