Forum Discussion

ajisharavind_99's avatar
ajisharavind_99
Advocate I
3 years ago
Solved

Pivot or unpivot Multiple Columns

Hi Everyone,   I am very new to Power Query, and I am looking for a solution to pivot or unpivot data into tabular format. I believe someone can very quickly help me. Note: The prgrs break down na...
  • slorin's avatar
    3 years ago

    Hi,

     

    = Table.FromRows(
    List.TransformMany(
    Table.ToRows(Previous_Step),
    each {0..6},
    (x,y) => {x{0}, x{1+y}, x{8+y}, x{15+y}, x{22+y}, x{29+y}, x{35+y}, x{42+y}}
    ),
    type table [ID = text, Prgrs Breack Down = text, Actual = number, Approved Plan = number, Current Plan= number, Int Plan = number, QPIT VAR = number, Var = number]
    )

     

    Stéphane