Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Sort Order

Hi Friends

I have following Pivot table in my doc

Screenshot_1.png

I want to Total Column come to the bottom of table and Dept 1 & Dept 2 to remain as it is. The sorting order is

sum(PREMIUM) descending

Further I have a calculated dimension as shown below

=pick(Dim,DEPT,'TOTAL')

Pls help me

1 Solution

Accepted Solutions
sunny_talwar

Check with this

RangeSum(Only({1} DimF),  -sum({<RISK_YEAR = {$(=Max(RISK_YEAR))},RISK_DATE={$(vP17)}>}PREMIUM)/1e10)

View solution in original post

12 Replies
sunny_talwar

Sort this dimension using this expression:

Only({1} Dim)

upaliwije
Creator II
Creator II
Author

still no change  Same result

sunny_talwar

Did you sort this calculated dimension (=pick(Dim,DEPT,'TOTAL')) using this -> (Only({1} Dim)) on the sort tab?

upaliwije
Creator II
Creator II
Author

Yes Sunny

Screenshot_1.png

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Change Descending to Ascending.

Also mark the Text checkbox and see if it works.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
upaliwije
Creator II
Creator II
Author

Then Total comes in between Dept

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Uncheck the sorting order for Description and check.

If that also doesnt work then please share the sample data to understand it in detail.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sunny_talwar

Try this

RangeSum(Only({1} Dim), Rank(DEPT))

and sort ascending

If that doesn't work, try this

RangeSum(Only({1} Dim), -Rank(DEPT))

and sort ascending

upaliwije
Creator II
Creator II
Author

I have tried that but still not working. I have attached my sample data pls advise