Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
paweln
Contributor III
Contributor III

Found highest value with Max(), how to get that value's dim?

Hi all,

I have many machines. Most of them creates defects. I find the worst machine's result and create KIP.

Max(Aggr((expr), Machine),1)

but how to get that dimension to put it in the title?

Only()?

Labels (2)
1 Solution

Accepted Solutions
anat
Master
Master

to get max sales :=Max(Aggr(Sum(Sales), Product))

to get max sales product:=FirstSortedValue(Product, -Aggr(Sum(Sales), Product))

View solution in original post

2 Replies
anat
Master
Master

to get max sales :=Max(Aggr(Sum(Sales), Product))

to get max sales product:=FirstSortedValue(Product, -Aggr(Sum(Sales), Product))

paweln
Contributor III
Contributor III
Author

Is this possible to use

=FirstSortedValue(Product, -Aggr(Sum(Sales), Product))

in Set expression?

Sum({<Field1={"=FirstSortedValue(Product, -Aggr(Sum(Sales), Product))"}>} Field2)

 

I get error