Selection/filter for the last 12 months

alice1001 Posted messages 4 Status Member -  
alice1001 Posted messages 4 Status Member -
Hello,

I am a beginner in using Excel and I need your help.
I have a source Excel data file containing a Date column (format DD/MM/YYYY) and a Month column (which extracts the month from the date column in letters).
I have created a pivot table representing the number of parts that have failed for each month of a given year (I applied a filter for the year).

The problem: I want to filter the number of parts that have failed over the last 12 months. If this is possible, how could I do this by filtering directly in the pivot table?
If this is not possible, how could I do this in the source data file?

Thank you very much for your help!

Best regards.

1 answer

  1. Excel-worker Posted messages 603 Status Member 58
     
    Hello,

    Have you tried doing it directly on the date => right click => group and select year?

    Best regards
    0
    1. alice1001 Posted messages 4 Status Member
       
      Hello,
      I'm sorry, I didn't explain my problem well...
      From the data list, I created a pivot table with the different months of a given year in the columns (I set the year as a report filter) and in the other column, the number of pieces that broke down.
      I would like to be able to filter/select the last 12 months from today's date, if possible directly on the pivot table; if not, how could I achieve this without using macros/VBA?

      Thank you very much!

      Best regards
      0