Forum Discussion

JobbeGoossens0223's avatar
JobbeGoossens0223
Copper Contributor
Apr 29, 2025

Reformating data from pivot tables

I have a data table that contains several pieces of information. It contains informations about the type of certificate received in each year for different education types. Unfortunately, I can only download the data in the long format as in the first added screenshot.

 

 

I tried fixing the issue by using pivot tables but this has several problems, I can't removethe sum collumns and it gives issues in trying to make comparative time series. I only managed to make a table as shown in the second screenshot, however, I need to get rid of everything resembling subtotals and I need to be able to make comparative time series. All suggestions are very welcome and much appreciated! 

 

 

2 Replies

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor

    Removing the subtotals is simple, Select the pivot, click the Design tab and click the left-most button. Choose the top option.

    I'm not sure what you mean by comparative time series.

  • SheetHappensXL's avatar
    SheetHappensXL
    Copper Contributor

    What you probably want is to flatten everything out into a proper long format — one row per certificate, per year, per education type — with three columns like: EducationType, CertificateType, Year, Value. You can do this with Power Query really cleanly. If your raw data is structured like in the first screenshot, you can:

    1 Load it into Power Query

    2 Use “Unpivot Columns” on all the year columns

    3 Then clean up the extra label rows (like those group headings: aso, bso, etc.) using a fill-down or by filtering Once it’s flattened, you’ll be able to build clean comparative time series without the subtotal junk or nesting issues.

    Happy to walk you through the Power Query steps if needed.

Resources