PowerPivot - How to preserve the sorting order in Text fields?

paulkltam

New Member
Joined
Apr 11, 2014
Messages
14
For PowerPivot, can anyone tell me how to preserve the text fields sorting order, neither ascending nor ascending order, after refreshed? For instance, "John, David, Peter, Ann", and my prefered sorting order is "John, Peter, Ann, David".
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hello,
it is possible to sort it as you desire. First create your "sort order table" in excel which consiste two columns (names and numbers). Copy and paste it from power pivot window (after this you'll not need to keep the copied excel table anymore so you may delete it). Ok now use =LOOKUPVALUE() function to get index numbers of the names and sort the index columns then your result will be ready.
 
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,471
Members
453,726
Latest member
JoeH57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top