Sorting by values in pivot table

excellearner09

New Member
Joined
Feb 22, 2019
Messages
2
Hi all,

I have looked online but can't seem to find an answer to this. I have currently filtered the date by specific year which looks like below. What I am trying to do is use a slicer so that I can choose between dates and also get a text return linked in but I cannot seem to figure out how to sort by YTD, rolling 12m or quarterly since they are values and numeric.

Ideally, I would like to use a text link on a dashboard map. So London will equal A2 which will be January data for YTD, but I want to be able to filter so that I can get the same results for rolling 12m etc.

I current have 'Years' in filter, Under Rows I have date and location and under values YTD, 12 month rolling and quarter ending in the Pivot table

Many thanks in advance.

[TABLE="width: 375"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 384"]
<colgroup><col span="6"></colgroup><tbody>[TR]
[TD]Row Labels[/TD]
[TD]YTD[/TD]
[TD]Rolling 12m[/TD]
[TD]Quarter ending[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]London[/TD]
[TD]26[/TD]
[TD]26[/TD]
[TD]26[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Somerset[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]26[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YORK[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]67[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Crewe[/TD]
[TD]26[/TD]
[TD]22[/TD]
[TD]27[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Manchester[/TD]
[TD]77[/TD]
[TD]72[/TD]
[TD]72[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]South Somerset[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]63[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]South West[/TD]
[TD]60[/TD]
[TD]26[/TD]
[TD]67[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheffield [/TD]
[TD]22[/TD]
[TD]26[/TD]
[TD]25[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]London[/TD]
[TD]26[/TD]
[TD]26[/TD]
[TD]26[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Somerset[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]67[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YORK[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Crewe[/TD]
[TD]26[/TD]
[TD]22[/TD]
[TD]26[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Manchester[/TD]
[TD]77[/TD]
[TD]72[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]South Somerset[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]South West[/TD]
[TD]26[/TD]
[TD]26[/TD]
[TD]22[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheffield [/TD]
[TD]22[/TD]
[TD]26[/TD]
[TD]27
... Dec[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the Board


- A pivot table may be converted into a normal table by copying and then using paste special/values. This new table can be useful in some situations.
- To quickly sort a pivot table column, right click a value cell and choose sort. See page below for more information.
- The GETPIVOTDATA worksheet function can be used to transfer individual pivot cells to other locations.

https://www.contextures.com/excel-pivot-table-sorting.html
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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