Forum Discussion

davidv64's avatar
davidv64
New Member
3 years ago
Solved

how to reshape data

Hi, I am new to data reshaping. I have attached a link to a sample spreadsheet which has a raw data worksheet which I'd like to reshape to look like the second worksheet, Desired Output. I don't car...
  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    3 years ago

    Use this please

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[Role]), "Role", "Participant"),
        Custom1 = Table.TransformColumnNames(#"Pivoted Column", each Text.Proper(_))
    in
        Custom1