Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
eilidh3
Frequent Visitor

Reformatting of table to suit data (unpivot?)

Hi all,

 

I have a table which I use to collect data from our teams on areas of improvements.  I currently produce a number of excels to suit the graphs I produce however I know theres a better way.  I unpivoted the data and Im nearly there but not quite in terms of format.  

 

The data is currently formatted as below:

 

Project NameGUIDStageDateProduct ScoreProduct CommentsService Score Service CommentsDefects Score Defects Comments
Project 1123Stage 11/1/219text8text7text
Project 2124Precon1/2/2110text7text5text
Project 3125Stage 11/3/215text6text9text

 

I would like to create a radar graph which shows all the different areas of improvement and sepertly report on their comments.  

 

To do this I presume I need to show the report as:

 

Project NameGUIDStageDateArea of Improvement ScoreComments
Project 1123Stage 11/1/21Product9text
Project 1123Stage 11/1/21Service8text
Project 1123Stage 11/1/21Defects7text
Project 2124Precon1/2/21Product10text
Project 2124Precon1/2/21Service7text
Project 2124Precon1/2/21Defects5text

 

Without having to create numerous rows for each project, how can I produce this within PowerBI?

 

As always, any help is greatly appreciated 🙂  

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @eilidh3 ,

Try like following :

base data:

v-luwang-msft_0-1622451752967.png

Unpivot three column:

v-luwang-msft_1-1622452108323.png

Then get the below:

v-luwang-msft_2-1622452274726.png

Then apply and use the following dax to create a new table:

Table2 =
VAR test1 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute],
        "Score", 'Table'[Value],
        "Comments", "text"
    )
VAR test2 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute.1],
        "Score", 'Table'[Value.1],
        "Comments", "text"
    )
VAR test3 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute.2],
        "Score", 'Table'[Value.2],
        "Comments", "text"
    )
RETURN
    UNION ( test1, test2, test3 )

Final you will get the below:

v-luwang-msft_3-1622454455780.png

 

Wish it is helpful for you!

You could download my pbix file if you need!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @eilidh3 ,

Try like following :

base data:

v-luwang-msft_0-1622451752967.png

Unpivot three column:

v-luwang-msft_1-1622452108323.png

Then get the below:

v-luwang-msft_2-1622452274726.png

Then apply and use the following dax to create a new table:

Table2 =
VAR test1 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute],
        "Score", 'Table'[Value],
        "Comments", "text"
    )
VAR test2 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute.1],
        "Score", 'Table'[Value.1],
        "Comments", "text"
    )
VAR test3 =
    SELECTCOLUMNS (
        'Table',
        "Project Name", 'Table'[Project Name],
        "GUID", 'Table'[GUID],
        "Stage", 'Table'[Stage],
        "Date", 'Table'[Date],
        "Area of Improvement", 'Table'[Attribute.2],
        "Score", 'Table'[Value.2],
        "Comments", "text"
    )
RETURN
    UNION ( test1, test2, test3 )

Final you will get the below:

v-luwang-msft_3-1622454455780.png

 

Wish it is helpful for you!

You could download my pbix file if you need!

 

Best Regards

Lucien

amitchandak
Super User
Super User

@eilidh3 , One option I can see that you can unpivot data in power Query and then use it , If you can use that

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

In matrix you have option to show measure on row. But not not suitable for other visuals

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.