Pivot table column Filtering

Copper Contributor

Hello 

 

I receive a file in which project expenses are being reported with the following layout that goes so throughout the year:

capture 4.PNG

 

I want to create a pivot table in which I can easily view planned, actual or both values without having to manually drag the 12 months each time.

 

The best solution I've found so far is creating a new table like this:

Capture 6.PNG

 

Which gives me the desired pivot table:

pivot.PNG

 

However doing so requires to have 2 rows on the original file and doesn't allow me to group the information by quarter when needed.

 

Is there a way to get the second pivot table using the first table layout as source?

Additionaly, is there a way to group the months into Quarters?

 

Thank you

2 Replies

For grouping the months to querters you need to transform your table as fallows

 

Type---Real/Plan---Date---Project---Budget

 

and Date column need to have real dates like 1/1/2020. So when you create a pivot table you will have dates on the Pivot Table and than right click on the column name, one of the dates on the column of Pivot table (not the Date shown on "Pivot table fields" column area), and select "Group By" to have quarterly and yearly grouping.

 

For your second question you can check below web site. Not the exact answer however it may help you.

https://excelchamps.com/blog/link-slicer-to-multiple-pivot-tables/

 

@Alejandro_Rivero If you're open to a solution using Power Query (PQ), have a look at the attached file. I created a data table based on the first picture in your question.

 

The steps applied in PQ are:

1: Query the data table (A1:J12)

2: Remove the Quarter columns (not needed, as the pivot table will calculate them for you)

3: Unpivot the month plan and real columns

4: Split Month name and Plan/Real into two separate columns

5: Rename the two new columns

6: Keep first three characters of month name (i.e. "Mmm")

7: Create a date from "Mmm" and set correct type

8: Load table back to Excel (starting at A8)

 

Now you can create a pivot table using the dates as row headers and group them by quarter.