This question highlights one of the major differences between say a Table and a PivotTable. PivotTables work by grouping data together into categories, and then doing some kind of arithmetic on the data associated with each category.
Whereas Tables simply serve up the underlying data for each line. And this explains the difference that you're observing when trying to filter anything but the first column of a PivotTable:
- Because Tables don’t need to do any kind of grouping, you can sort
them alphabetically by any column you want.
- But PivotTables are based on the underlying relationships in your data, with the display hierarchy being set by the order in which your fields appear in the PivotTable itself. And that order determines just how much you can sort any one field by. Because unlike Table columns–which can be sorted by an entire column–PivotFields get sorted within the confines of the current hierarchy level.
Hard to explain in words, so lets look at a classic example: US States and Cities.
If we were to view a list of say US cities and their associated populations in PivotTable, then by default Excel would list those cities in strict alphabetical order as shown below left. If we then added a State field to the left of that City field, then the PivotTable would say…
“Okay, I’ve added the State field, and because it’s to the left of that Cities field, I’m guessing that now you want these cities population figures broken down by State. Okay, that’s cool…I’ll group them by State. But I’ll still list them alphabetically within those state grouping, to make it easy for you to find any particular city in any particular state”.
![enter image description here](../../I/static/images/fa82c5132214d730f07bc63fa738bdc3e7fb3676179c713abda3882d7b208e39.jpg)
As we can see, while the original City layout went from A to Z, now the cities are ordered from A to W (Anchorage to Wasilla) for the state of Alaska (AK), and then start over at A again (Adamsville) for Alabama (AL).
Now, if this was a mere Table we were dealing with–and if you wanted that strict alphabetical city layout back again–you could simply click on that triangle filter icon by the City header, sort A to Z, and have those cities back in the original order again. But try it, and as shown below left, all that would happen is that the triange filter itew would display an arrow to tell you the field is now sorted alphabetically, but the actual sort order wouldn’t change one bit from what we had before. And a good thing too, because otherwise that would break the PivotTable paradigm of always displaying items sorted from the innermost (left) field to the outermost (right). In fact, the only way to sort those population figures by city is to make the City field the right-most field in the PivotTable, as shown below right.
![enter image description here](../../I/static/images/4fd30b1c59858dc122d179d41f37e6fcf11fd6834efa57dca3b1a2250b18b5a2.jpg)
Given this, then what good is that triangle filter icon, if it doesn’t change anything? Well, it does change the sort order, but only within the groupings defined by the fields to the left. To illustrate, if you sort City by Z to A, you get the following:
![enter image description here](../../I/static/images/0d80ff18580e262be7c2fee66ebfb1cf33f51e1a2b9d8134ad863eee05ab570e.jpg)
Can you provide some example data? – Burgi – 2017-08-04T15:47:15.163
1Mariangela...it's not a good look to ask a question and subsequently not to respond to comments or answers. Please reply to Burgi's comment or mark my answer as accepted if it helps, or otherwise leave a comment below my answer in the event that you still need further assistance. – jeffreyweir – 2017-08-07T20:25:36.417