Forum Discussion

Rygar's avatar
Rygar
Helper II
3 years ago
Solved

Multi transpose from one column

Hi Community! 

 

I need some kind of multi transpose from a column:

Example File here: https://edvadamsde-my.sharepoint.com/:x:/g/personal/adams_edv-adams_de/EcJEphvMqcdGo4MbaM8iMw8BJoC4iEjqZAS7reLxZCeIlA?e=PKVWGm 

 

Thanks and regards,

Michael

 

  • just for the data you shown

    =#table(4,List.Split(PreviousStepName[Column1],4))

  • Rygar's avatar
    Rygar
    3 years ago

    Nice approach, it worked, thanks a lot!

6 Replies

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    just for the data you shown

    =#table(4,List.Split(PreviousStepName[Column1],4))

    • Vijay_A_Verma's avatar
      Vijay_A_Verma
      Most Valuable Professional

      This is awesome. Never thought of using List.Split ever. You taught me this trick. Thank you, so much.

    • Rygar's avatar
      Rygar
      Helper II

      Thanks a lot for this elegant solution!

  • HotChilli's avatar
    HotChilli
    Community Champion

    Add an Index column

    Add a custom column using Number.IntegerDivide to divide the Index Column by 4 (as you have groups of 4).

    Add a custom column(name it Heading) using Number.Mod([Index], 4) to create the field which we will use for column headings.

    Then remove the Index column

    Then Pivot the Heading column (pick the original column for Values column and Don't Aggregate)

    --

    That's the method.  Have a go and I can help if you get stuck (There will be exact examples on this forum or the web too)

    • Rygar's avatar
      Rygar
      Helper II

      Nice approach, it worked, thanks a lot!