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
Syndicate_Admin
Administrator
Administrator

Matriz Power Query

Hello

My doubt is that I am bringing some data like these:

josefmc08_1-1653995651393.png

And in the power query editor I wanted to know if it is possible to transform them like this:

josefmc08_2-1653995779664.png

It is very easy to do it in a PivotTable but I need to bring it to the PowerBi tables in this format

Thank you!

Jose

2 ACCEPTED SOLUTIONS
v-stephen-msft
Community Support
Community Support

Hi @josefmc08 ,

 

You can pivot the column in the Power Query Editor.

Here's the solution.

1.Select the MES column and then click 'Pivot Column'.

vstephenmsft_0-1654238086802.png

 

2.Set up as follows, then click OK.

vstephenmsft_1-1654238207678.png

 

 

3.Here's the results.

vstephenmsft_2-1654238236548.png

 

Your question was about Power Query and I moved the post to the Power Query forum for you. Next time if you encounter a problem in Power Query, posting in the correct forum can help you solve it faster.

 

 

Best Regards,

Stephen Tao

 

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

 

View solution in original post

Fantastic, it was exactly what I needed. Thank you!

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @josefmc08 ,

 

You can pivot the column in the Power Query Editor.

Here's the solution.

1.Select the MES column and then click 'Pivot Column'.

vstephenmsft_0-1654238086802.png

 

2.Set up as follows, then click OK.

vstephenmsft_1-1654238207678.png

 

 

3.Here's the results.

vstephenmsft_2-1654238236548.png

 

Your question was about Power Query and I moved the post to the Power Query forum for you. Next time if you encounter a problem in Power Query, posting in the correct forum can help you solve it faster.

 

 

Best Regards,

Stephen Tao

 

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

 

Fantastic, it was exactly what I needed. Thank you!

amitchandak
Super User
Super User

@Syndicate_Admin , Looking at what you posted, not able to get logic. I would not advice data to be broken like that.

 

use Matrix visual

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

 

Or refer this way

Power bi Excel for P&L , add in app
Curbal
https://www.youtube.com/watch?v=IISYzTaIyu4
Guyinacube
https://www.youtube.com/watch?v=1yJnmZRTNZg

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.

Top Solution Authors
Top Kudoed Authors