Pivot table sorting

Author
Discussion

thebraketester

Original Poster:

14,710 posts

145 months

Saturday 9th March
quotequote all
Afternoon all..

Is it possible to change the sort of dates in PT so it sorts from lets say July-June, rather from Jan-December?

Thanks
TBT

mmm-five

11,441 posts

291 months

Saturday 9th March
quotequote all
Are you saying you want to see January 2023 AFTER July 2023?

Or do you want the filter (not the sort) to only start at July 2023 and up to June 2024?

paulrockliffe

15,998 posts

234 months

Saturday 9th March
quotequote all
Right click on it and there is a custom sort option I think.

You can also do this using Power Pivot by adding a custom column that is 1 for July, 2 for August etc, then you can set that new column as the sort column for the month column.

Murph7355

38,929 posts

263 months

Saturday 9th March
quotequote all
Do you mean sorting the months in reverse chronological?

If so, yes.

If you've entered the data correctly, you should see a drop down icon next to the column name. Click it and change the sort order wink

thebraketester

Original Poster:

14,710 posts

145 months

Saturday 9th March
quotequote all
Sorry. Just to clarify. This in numbers too, so it might be a limit of the program.

Instead of

Jan
Feb
Mar
....

It would be nice to sort

July
August
Sep

Thanks

Ultuous

2,252 posts

198 months

Saturday 9th March
quotequote all
I'm going to hazard a guess that the op wants to sort the data across a tax year or similar - if that's the case, just include the calendar year alongside the month in the source data and the world will be a better place! smile

Murph7355

38,929 posts

263 months

Saturday 9th March
quotequote all
thebraketester said:
Sorry. Just to clarify. This in numbers too, so it might be a limit of the program.

Instead of

Jan
Feb
Mar
....

It would be nice to sort

July
August
Sep

Thanks
You're not helping! What do you mean?

Show the whole dataset you are trying to sort.

thebraketester

Original Poster:

14,710 posts

145 months

Saturday 9th March
quotequote all
Ultuous said:
I'm going to hazard a guess that the op wants to sort the data across a tax year or similar - if that's the case, just include the calendar year alongside the month in the source data and the world will be a better place! smile
Ahh haaaa.... sorted *pun intended

Source data has full date so if I select sorting by Y/M instead of just M, that does what I want.... Thank you.

TBT