Forum Discussion

Bgonski's avatar
Bgonski
New Member
2 years ago
Solved

Source Data has all dates as column headers

I have a spreadsheet as the source data where KPIs are rows and report date is the column headers.   I'm fairly new to power bi but it seems I'll have a lot more success in creating new measures an...
  • Syk's avatar
    2 years ago

    Q1. Your assumption is correct. Much easier to work with date data as rows.

    Q2. Because there are numerous areas the date is entered (seemingly at every 'Category' of data) we will need to filter then unpivot your data.

    To start, I'm assuming your data is coming into Power BI similar to this:


    We will promote headers then filter out other date junk in the same column.

     

    Now the table should look like this

    Select the first column (mine is membership) and Transform > Unpivot Columns > Unpivot Other Columns

    Rename a few columns and you're done!