Skip to main content
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?

Best Anil, 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
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

Best Anil, 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
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..

Best Anil, 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