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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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