Forum Discussion
akoconnor
3 years agoNew Member
newbie transformation question
Hello! New to PQ and I may not have the proper vocabulary to ask this, possibly, simple question. I have been given data that is iteritive in rows. I know I need to transform it but everything I...
ronrsnfld
3 years agoSuper User
This is a simple Pivot on the Question column with No Aggregation
From the UI:
Code from Advanced Editor
let
//Change next line to reflect actual data source
Source = Excel.CurrentWorkbook(){[Name="Table21"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Question", type text}, {"Answer", type text}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[Question]), "Question", "Answer")
in
#"Pivoted Column"