cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
Mike_0828
Frequent Visitor

Re: M Language transformation of rows to table

It works!

Many thanks

View solution in original post

2 REPLIES 2
Super User II
Super User II

Re: M Language transformation of rows to table

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 🙂

Proud to be a Datanaut!

Mike_0828
Frequent Visitor

Re: M Language transformation of rows to table

It works!

Many thanks

View solution in original post

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

Top Solution Authors
Top Kudoed Authors