Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
cancel
Showing results for 
Search instead for 
Did you mean: 
TuckerSteven
Contributor
Contributor

Get Min() value by dimension in KPI

Hi, I have some Master Item measurement, witch I use for bar chart and KPI. The measurement is SUM(.....). But this sum could be brake down by dimension machine. This I use in bar chart, where I use machine as dimension and same measurement. My question is, if I want to have another KPI, that portray the Min() value of this measurement by machine. (So the machine with lowest measurement) If I only do min(measurement,..) it will return the same value as previous KPI, because for him it is only one value, so min of one value is the same value. Any suggestions?

1 Reply
lironbaram
Partner
Partner

if you want the min value to be displayed use this exprssion
min(aggr(measurement, machine))
if you want to display the machine name use this :
firstsortedvalue (machine, aggr(measurement,machine))