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
Mike_0828
Frequent Visitor

M Language transformation of rows to table

Hi All

I have a table with one column and trying to perform following transformation described below.

Is there any way to do it via M?Example.png

 

1 ACCEPTED SOLUTION

It works!

Many thanks

View solution in original post

2 REPLIES 2
Stachu
Community Champion
Community Champion

I'd suggest the following:

1) split column by delimiter '=', rename the columns to 'Label' and 'Value'

2) add a new column that is equal to the 'Value' if 'Label' is equal to "AccountNo"

3) Fill down the column from 2)

4) filter only relevant labels

5) pivot the 'Label' column with 'Value' as values column



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

It works!

Many thanks

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