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

get min of rows

Bonjour, 

I have an array, I would like to retrieve the min of the value and the value of the associated dimensions as follows.

stoneB_0-1651664999011.png

I would like as results

stoneB_1-1651665083590.png

Qlik Sense Business #script 

 

 

Labels (3)
2 Replies
vchuprina
Specialist
Specialist

Hi,

The script below will add a column with min value to your table.

Then you can use it in your charts

TMP:
LOAD
     NameApp,
     DimesionDescription,
     Value
FROM yoursource;

Left Join(TMP)
LOAD
     NameApp,
     Min(Value) as MinValue
Resident TMP
Group By NameApp;

Also, you can leave in the table only a row with min value 

TMP:
LOAD
     NameApp,
     DimesionDescription,
     Value
FROM yoursource;

Inner Join(TMP)
LOAD
     NameApp,
     Min(Value) as Value
Resident TMP
Group By NameApp;

Regards,

Vitalii

 

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
stoneB
Contributor
Contributor
Author

Thank you for your answer, the value is an aggregation of another dimension and a variable. The only way for me to do this is with a calculated expression. I searched the community without finding an answer.