Excel 2016 - Pivot table slicer - custom sort order not complete

Paddington1881

Board Regular
Joined
Jan 12, 2005
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
Hi Board
I've inserted a slicer into a pivot table to control the month (including the year). I created a custom list of 36 months (Jan-18 to Dec-20 inclusive). I can make the slicer recognise and sort by the custom list I created but I have two problems:

1. the slicer only shows 32 of the 36 custom dates (so Aug-20 to Dec-20 are missing although they are present in my custom list)
2. one of the slicer buttons shows "Dec-17" which wasn't in the custom list I created.

Any pointers where I'm going wrong would be much appreciated.
Thank you
Darren

Excel.jpg
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

GraH

Well-known Member
Joined
Mar 22, 2020
Messages
702
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
A slicer will show the values of the dimension. A custom list is a reference for the sort order. Meaning the references that are missing are not in the data. The reference that's not in your custom list does appear in the data.
Or do I missunderstand?
Solution is using a datamodel, with a table holding your custom list. And use this in the slicer, and not the field from the data.
 

Paddington1881

Board Regular
Joined
Jan 12, 2005
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
Hi, you've not misunderstood. Now that you've explained it so well, I can see what I've done wrong and fixed it. I feel stupid. Thanks so much for your help.
Darren
 

GraH

Well-known Member
Joined
Mar 22, 2020
Messages
702
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Ha, great to hear it's solved. You're welcome, no worries.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,850
Messages
5,598,457
Members
414,239
Latest member
xnanx

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
Top