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
CSpina
Helper III
Helper III

How to transform rows in columns in a table with measures?

Hi, guys!

 

I have a table where the measures are columns and I need to transform in rows:

 

2020_08_03_12_34_31_Geomarketing_e_Frota_Power_BI_Desktop.png

 

THe config is:

 

CSpina_0-1596475720095.png

 

I need the following table:

 

CSpina_1-1596476357477.png

 

Any ideas?

 

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

Hi @CSpina ,

You can follow the below steps to achieve it:

1. Unpivot columns in Power Query Editor

  • Select column EMP AUT, EMP CAMEMP COMEMP MOTEMP ONIEMPL SER and EMPL TRAT
  • Navigate to Transform ribbon, click Unpivot columns and choose "Unpivot Only Selected Columns" optionUnpivot Only Selected ColumnsUnpivot Only Selected Columns

2. Create a matrix(Rows: Attribute   Columns: Coluna   Values: Value)matrix.JPGBest Regards

Rena

Community Support Team _ Rena
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

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @CSpina ,

You can follow the below steps to achieve it:

1. Unpivot columns in Power Query Editor

  • Select column EMP AUT, EMP CAMEMP COMEMP MOTEMP ONIEMPL SER and EMPL TRAT
  • Navigate to Transform ribbon, click Unpivot columns and choose "Unpivot Only Selected Columns" optionUnpivot Only Selected ColumnsUnpivot Only Selected Columns

2. Create a matrix(Rows: Attribute   Columns: Coluna   Values: Value)matrix.JPGBest Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anand24
Super User
Super User

@CSpina,

 

You can you Matrix visualization but you will need to re-structure(pivot current table) your table a bit.

 

Below image shows the table changes(left side of image) and final output viz(right side of image) with config:

matrix.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you !!!

simrantuli
Continued Contributor
Continued Contributor

Hi @CSpina ,

Try Matrix.

Best Regards

Simran Tuli

amitchandak
Super User
Super User

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.