cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors
Users online (687)