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
dpombal
Post Patron
Post Patron

Pivot groups of rows into columns group by

Hi all,

I am reading an XML file with this shape

 

0_XML_Source.PNG

Using Power Query to Expand Label table (??Is it possible to expand and create 3 columns...instead 3 rows)

 

  #"ExpandLable" = Table.ExpandTableColumn(Table0, "label", {"group", "text"}, {"label.group", "label.text"})

 

 

0_0_PowerQuery.png

 

And Data is converted in this format... after expanding

0_0_PowerQuery.png

Now I have data with this format ( in colours by group)

0_Before_Pivoting.PNG

 

 

However now I need to get converted data in this format, in each group of 3 registers by Instance ID.

 

ID, start,end, code ,pos_x and pos_y are always the same value inside a group.

 

1_After_Pivoting.PNG

 

 

I tried several pivoting options with no ...luck

Regards

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @dpombal,

 

Please refer to the snapshot below. 

1. Select the two columns "label.group" and "label.text".

2. Follow the steps in the snapshot.

Pivot_groups_of_rows_into_columns_group_by

 

Best Regards,
Dale

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

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @dpombal,

 

Please refer to the snapshot below. 

1. Select the two columns "label.group" and "label.text".

2. Follow the steps in the snapshot.

Pivot_groups_of_rows_into_columns_group_by

 

Best Regards,
Dale

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

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.