cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Mike_0828 Frequent Visitor
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
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
Frequent Visitor

Re: M Language transformation of rows to table

It works!

Many thanks

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors