Forum Discussion

Mike_0828's avatar
Mike_0828
Frequent Visitor
7 years ago
Solved

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?

 

2 Replies

  • Stachu's avatar
    Stachu
    Icon for Community Champion rankCommunity 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_0828's avatar
      Mike_0828
      Frequent Visitor

      It works!

      Many thanks