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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to Change how data is formatted?

Hi, I'm new to PowerBI so apologies if this is not at all possible. I'm trying to turn this: 

Anee_0-1669328196862.png

into this: 

Anee_1-1669328300408.png

Is it possible to do this in PowerQuery? I'm trying to create a resource planning bar chart similar to this, so if there's a measure I can use instead, I would appreciate that. Thank you!

Anee_2-1669328554814.png

 

 

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Yes, this is possible with the unpivot column function:

 

Please do the following:

 

Start table:

Mikelytics_0-1669328869210.png

 

highlight the name column and click on unpivot other columns:

Mikelytics_1-1669328941206.png

in-between result

Mikelytics_2-1669328963951.png

no righ click an Attrbiute and use Replace value

Mikelytics_3-1669328986910.png

Mikelytics_4-1669329020944.png

 

Result

Mikelytics_5-1669329070671.png

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

1 REPLY 1
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Yes, this is possible with the unpivot column function:

 

Please do the following:

 

Start table:

Mikelytics_0-1669328869210.png

 

highlight the name column and click on unpivot other columns:

Mikelytics_1-1669328941206.png

in-between result

Mikelytics_2-1669328963951.png

no righ click an Attrbiute and use Replace value

Mikelytics_3-1669328986910.png

Mikelytics_4-1669329020944.png

 

Result

Mikelytics_5-1669329070671.png

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

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.

Top Solution Authors