Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Load & transform scorecard

  Hi all,   I have a .xlsx scorecard I want to load in Power BI. The excel is in the below structure: .      I would like to load in Power BI and transfor to below structure, with months ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Generally easier to add via dropbox or onedrive. But was able to get the data out from the screenshot.

     

    In the attached pbix file take a look at the applied steps in power query. The first half is just the steps i needed to make the data usuable from when I imported.  But after that.

     

    1. Create a custom column to look for indicator in the 1st column. If not there, then give null. Then we can just fill down

    then can merge that new column with the 1st column

    Selecting that column we then can unpivot other columns 

    Now split that merged column

     

    Then just setting data types, names, ect. I added a few columns so we can sort by date and country in our final table

     

    Here's the pbix file:

    https://1drv.ms/u/s!Amqd8ArUSwDSz3grLk4FXOof3mG1