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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
ManuelRühl
Partner - Specialist
Partner - Specialist

Pivot Dynamic Dimension Sum with highest Value

Hi, I need this pivot table (example generated by test script):

ManuelRhl_0-1780126492629.png

The highest sum(Expression1) per Dim1 must be presented in the pivot table like that.

I tried nearly everything Max,Aggr,Firstsortedvalue etc ...

Any suggestions?

Thanks in advance!

Manuel Rühl
Labels (1)
1 Solution

Accepted Solutions
alejandroquinones
Partner - Creator
Partner - Creator

Hey @ManuelRühl,

 

I got it using two Aggr functions:

 
Aggr(Max(Aggr(Sum(Expression1), Dim1, Dim2)), Dim1)

 

alexquimu_0-1780128984678.png


Kind regards

View solution in original post

2 Replies
alejandroquinones
Partner - Creator
Partner - Creator

Hey @ManuelRühl,

 

I got it using two Aggr functions:

 
Aggr(Max(Aggr(Sum(Expression1), Dim1, Dim2)), Dim1)

 

alexquimu_0-1780128984678.png


Kind regards

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Same answer as @alejandroquinones 

Lech_Miszkiewicz_0-1780130440563.png

 

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.