Forum Discussion
Mike_0828
7 years agoFrequent 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?
It works!
Many thanks
2 Replies
- Stachu
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
- Mike_0828Frequent Visitor
It works!
Many thanks