Sorting Pivot Sequentially

Astro_Viking

New Member
Joined
Jul 14, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I am working in Office 365 Desktop version - I have some source data which includes the following 4 fields: created on (dd:mm:yy hh:mm:ss), unique ref #, type of booking, month (as a number).

When I put this data into a pivot table I need the pivot table to sort the data by the created on field and only have one entry per month per type.

When I add the created on field, it creates multiple entries for each Unique Ref #, I cant remove the field or add it as a splicer and sort by that. I've tried adding a field and numbering lines sequentially, but I still cant remove that filter from the pivot without it reverting to A-Z on the unique number. Any help would be fantastic attached images show my issue

1689336161796.png

When the filter is removed, it default sorts by URN.

Thanks

Rob
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You'd need to convert the created on field to a specific date of the month (no time portion) such as the first/last day. Then the data will sort but you should only have one entry for a given month (though I'm not sure of the relationship between Month and the created on date).
 
Upvote 0
You'd need to convert the created on field to a specific date of the month (no time portion) such as the first/last day. Then the data will sort but you should only have one entry for a given month (though I'm not sure of the relationship between Month and the created on date).
Hi Rory,

thanks for the response, sorry I don't think I made it clear above, the created on date is the date that the line is put on the system, the month is the month of invoice, separate data points and will often be different, i.e. a line might be created in Dec 2022 but invoiced in Feb 2023.

Thanks!
 
Upvote 0
The only way you can achieve this:

sort the data by the created on field and only have one entry per month per type

is to have only one 'created on' entry per month per type. If the created on dates are always in the same calendar month for a month/type combination, then you can simply create a new field that is say the first of the month of the 'created' on date. If you could have 'created on' dates in different months for a given type/month combination, then you'd need to get the earliest date and use that.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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