Hi a great platform to answer unsolved questions.
Gents ,
I Have a table which has data for last 4 years by month by year the table has region, channel, brand and product as dimensions and have multiples measures Sales Volume, Value and market share.
In pivot table i want to plot previous 12 months data whenever i select any specific month from slicer for example
if i select June 2020 in slicer the data to be displayed should be from previous 12 months as below
Can anybody help me How can i achieve this in a pivot table please send me a solution with a dummy data.
Thanks and Regards
Fanexcel
Can you post the dummy data so that we dont have to waste time recreating it (probably incorrectly)
Thanks for the quick response. I have attached the sample data for your reference.
Thanks
Fan
I have not found a simple way of doing this. there seems to be ways with extra pivots/powerpivot or VBA but nothing straight forward.
It is possible to do something with formulas to only show the last 12 months from a given date using the =EOMONTH function, but again it can get complex when setting up.
Thanks so this means we dont have ways to do it?
Dear Mynda/Philips
Please look in to this and could you provide me with a way to achieve this.
Thanks
Hello,
There are of course other ways to achieve this, but as Purfleet mentions, it is not straight forward solutions and above all, not so dynamic as it could be.
You are better off if you can accept the users to highlight those 12 periods they want to see, instead of just one, because you are then using the functionality in Excel within its limits.
See attached file for examples.
Br,
Anders
You can't select one month in a Slicer and have Excel know which prior 12 month period you want displayed without also selecting the year.
The additional difficulty is that the Slicer filters the periods displayed in the PivotTable. If you're only choosing one month then it will only display one month. You can't tell it to display 12 months worth of data. You could display the total for the prior 12 months, but not the months broken out as you have them in your example.
I recommend you use the Timeline Slicer to allow your users to select the period they want to view.
Mynda