Pivot chart - prevent custom sort from resetting when data is refreshed

ToniGo

New Member
Joined
Oct 2, 2013
Messages
25
I have set up a data model with the main source of data being a bunch of CSV files in a particular folder.
Data is grouped by month via the pivot field which works fine.
The only issue is that I need to order the months July-June and every time the data is refreshed they divert back.

When I click on the axis and select more sort options I can see the "More Options" box but it is greyed out.

Hoping there is a simple answer! Otherwise the best idea I have to set up a macro to manually resort if the data is refreshed.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
do you have 12 months with a single data value by each ? if the pivot after refreshing is in the order in in say order jan to dec and you want dec back to jan a simple new table pulling the months in you specified order could prepare the data for the chart.....
 
Upvote 0
monthscore
jan1assuming you want dec to jan
feb2
mar3Sum of score dec36
apr4monthTotalnov34
may5jan14oct32
jun6feb16sep30
july7mar18aug28
aug8apr20july26
sep9may22jun24
oct10jun24may22
nov11july26apr20
dec12aug28mar18
jan13sep30feb16
feb14oct32jan14
mar15nov34
apr16dec36
may17Grand Total300
jun18formula giving 36 for dec is
july19
aug20=OFFSET($D$5,MATCH(I4,$D$6:$D$17,0),1)
sep21
oct22
nov23
dec24

<colgroup><col span="3"><col><col><col span="10"></colgroup><tbody>
</tbody>
 
Upvote 0
No, I have multiple years with a single entry for each month in each year. So I have it set up as a standalone pivot chart and would prefer not to link it to formula table but that is another option. Ideally I would just like to lock the order in so it stays as I have set it and not change the order once refreshed.
 
Upvote 0
2 options:
Add a custom list with your sort order
Add a calculated field with = month (Table1 [datefield]) and sort on that field
 
Upvote 0
2 options:
Add a custom list with your sort order
Add a calculated field with = month (Table1 [datefield]) and sort on that field

That sounds perfect thanks, but I can't see how to sort based on a different list?
 
Upvote 0
So hopefully this might help someone else. I just added a new pivot table in the same tab with a list of the months and was able to change the sort settings on that to not re-sort automatically. Since then my pivot charts have also not re-sorted (even though I didn't connect them). So problem solved.
 
Upvote 0

Forum statistics

Threads
1,215,359
Messages
6,124,488
Members
449,165
Latest member
ChipDude83

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