Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors