Forum Discussion

excel_learner's avatar
excel_learner
Brass Contributor
Nov 24, 2021

Dashboard & Pivot tables help

Hi 

I'm trying to create some Pivot tables which will then link to a interactive Dashboard. The problem I have is that my data set has heading and subheadings for the columns. The heading has been merged to cover all columns which come under it that being the subheadings, these  are ROW 3 and 4 ( row 2 just being used for data retrieval).

 

I want to know that in this current format can I create Pivot table to use in a dashboard, given the format of headings etc.

First of I'm trying to create a pivot table with Forecast Vs Actuals as a bar graph and slicer for Month-YY.

I have attached my workbook with the data set in Master tab.

 

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    excel_learner Couldn't really work with your file on my system. It was very slow with all the formulae and just hung up itself when I tried to add something to it. Therefore, I copied only the Data sheet to a new workbook, as values.

     

    As you already suspected, merged cells are a challenge. Or better to say, they are a pain and should be avoided at all cost during data collection. But fortunately, PQ can fix it. If you want to make a pivot table/chart from your data, you need to unpivot the table first. But you need to merge the two header rows into one. 

    Merging the two first rows in the data range is done by transposing the table so that the first to rows become the first two columns which you can then merge and transpose back. But since your table is quite large, I split-up the process in two steps. See if you can follow what I did.

     

    The attached file has the PQ output loaded to a Pivot Chart that looks like what you asked for, although I have now idea if the chart makes any sense. That's for you to judge, but I hope you can integrate this technique into your real life workbook.

    • excel_learner's avatar
      excel_learner
      Brass Contributor

      Riny_van_Eekelen This looks good with the attribute column, Making the charting more versatile.

      If I was to update this Dashboard with new data added into CMO input Tab and Forecast Input tab, will this automatically update the Pivot, as the master data is going in Power Query?

Share

Resources