Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
devarasu07
Master II
Master II

Peak Sold Sorting not working?

Hi All,

I have below kind of pivot table report. here we have calculated ranking dimension called "Peak Sales Rank" which is based on Singapore Peak Sales it should but i've used below Cal.dimension and below highlighted values shows wrong (Singapore max peak sold value to be in the top and smallest values in the bottom). is there any issue with below expression? kind advise me. thanks

Calculated dimension: Peak Sales Rank

=aggr(Rank(Sum(Aggr(max({<Year={"*"},Week= {"*"},Country={'SINGAPORE'},ArticleNo>}

aggr(sum({<Year={"*"},Week= {"*"},Country={'SINGAPORE'},ArticleNo>}SoldQty),Year,Week,ArticleNo)),ArticleNo)))

,Launch_No,ThemeGroup,ArticleNo)


Peak Sold Measure:

if(Dimensionality() = 5, Max({<Year={"*"},Week= {"*"},ArticleNo>}Aggr(sum({<Year,Week,ArticleNo>}SoldQty),ArticleNo, Week,Year)),

max({<Year={"*"},Week= {"*"},ArticleNo>}

aggr(sum({<Year={"*"},Week= {"*"},ArticleNo>}SoldQty),Year,Week,Country,ArticleNo)))

Capture.PNG

5 Replies
Anil_Babu_Samineni

Can you try to use "Initial Order" formula in Sort by expression and apply Descending option then check?

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
devarasu07
Master II
Master II
Author

Hi Anil,

Thanks, user request based on the Peak Sold Qty - Singapore column only.

refer to the attached mock report. Thanks

Regards.

Deva

Anil_Babu_Samineni

Not sure, Looks like sorting is good to me. Let me know if you want to remove this Image on wall ..

Capture.PNG

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
devarasu07
Master II
Master II
Author

Hi Anil,

Nope, can you refer to the attached expected excel out. its The report rank by Singapore peak Sold Qty

Peak SOld.JPG

Anil_Babu_Samineni

You can achieve using If(Match(Country, 'SINGAPORE'), Here Formula for Peak Sold) under sort expression..

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)