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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
miro_x
Regular Visitor

Data shaping problem

I want my data below to display two columns, one for Attainment grade and another for Effort grade so that I can treat them as independent data types. Any suggestions on how best to achieve this? The only thing I can come up with is to copy the huge table (there are over 20 columns) two times, filter one to display "Attainment grade" and the other to display "Effort grade" only in the query editor and then join them via a relationship, this feels really messy, so I want a better approach to this.

Current state of dataCurrent state of data

1 ACCEPTED SOLUTION
Iamnvt
Continued Contributor
Continued Contributor

hi,

 

you can use "Pivot" transformation in Power Query.

Here is the PBI file.

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

View solution in original post

2 REPLIES 2
Iamnvt
Continued Contributor
Continued Contributor

hi,

 

you can use "Pivot" transformation in Power Query.

Here is the PBI file.

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

Thank you that is great! I am curious why did you bother with adding the index column?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.