Forum Discussion

tdr426's avatar
tdr426
New Member
1 year ago
Solved

Create a new table using measures from a different table

Hello, I'm new to Power BI and data visualization.   I've tried to figure this out, but no success so I'm posting here.   I have a table like this (Table 1) Item 2021 Score 2022 Score 2023 ...
  • tdr426's avatar
    1 year ago

    tl;dr; - Using "Unpivot" in Power Query was the key to what I needed.  Steps are

    1. Select columns
    2. Unpivot those columns
    3. Clean up data.

    Full answer:

    Thank you to the people who answered. My original table is far more complicated than I indicated in my original question.  So using Transpose (per answer #1 above) created more problems than it solved.  It did not Transpose in a way that was helpful to me and I got stuck.

     

    I'm enough of a newbie that I needed some hand-holding and I found some people in my workplace to help. 

     

    I selected the 4 "score" columns in my table, and then did "Unpivot", which transposed the data just from those columns.  I then cleaned up the data via Replace Value, ie changed the value from "2021 Score" to "2021".

     

    The team then showed me how to create a simple bar chart with the 2 new columns that resulted from the unpivot and voila!