This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi all, I have a sharepoint list with multiple columns in that I am tryting to pivot into a usable format. So far I have tried lots of steps which have all failed with the result of me creating duplcate queries and then appending to 1 table which is inefficient. I have tried following steps from other suggestions but cant seem to get it right
The data looks like this although there would be 22 Areas not just the 2 in my example below, each area has 4 columns attributed to them - Owner, Agreed, Date Agreed and commentary.
| Programme | Business Case Name | Business Case Owner | Area 1 Owner | Area 1 Agreed | Area 1 Date Agreed | Area 1 Commentary | Area 2 Owner | Area 2 Agreed | Area 2 Date | Area 2 Commentary |
| Test Programme | Lee Test | Lee Morgan | Lee Morgan | Yes | 30/06/2023 | text in here | Lee Morgan | null | null | Random text |
| Test Programme 2 | Lee Test 2 | Lee Morgan | Lee Morgan | null | null | Different text | Lee Morgan | null | null | null |
What I am trying to achieve is something like the following format.
| Programme | Business Case Name | Business Case Owner | Area | Area Owner | Agreed | Date Agreed | Commentary |
| Test Programme | Lee Test | Lee Morgan | Area 1 | Lee Morgan | Yes | 30/06/2023 | text in here |
| Test Programme | Lee Test | Lee Morgan | Area 2 | Lee Morgan | null | null | Random text |
| Test Programme 2 | Lee Test 2 | Lee Morgan | Area 1 | Lee Morgan | null | null | Different text |
| Test Programme 2 | Lee Test 2 | Lee Morgan | Area 2 | Lee Morgan | null | null | null |
Any help guidance is greatly appreciated.
Many thanks
Lee
Solved! Go to Solution.
Hi
Unpivot columns, Split Attribute, Pivot
let
Source = YourSource,
Unpivot = Table.UnpivotOtherColumns(Source, {"Programme ", "Business Case Name", "Business Case Owner"}, "Attribute", "Value"),
#"Split Column" = Table.SplitColumn(Unpivot, "Attribute", Splitter.SplitTextByCharacterTransition({"0".."9"}, {" "}), {"Attribute.1", "Attribute.2"}),
Trim = Table.TransformColumns(#"Split Column",{{"Attribute.2", Text.Trim, type text}}),
Pivot = Table.Pivot(Trim, List.Distinct(Trim[Attribute.2]), "Attribute.2", "Value")
in
Pivot
Stéphane
Thank you so much for this, has worked like a charm for the multiple columns.
Hi
Unpivot columns, Split Attribute, Pivot
let
Source = YourSource,
Unpivot = Table.UnpivotOtherColumns(Source, {"Programme ", "Business Case Name", "Business Case Owner"}, "Attribute", "Value"),
#"Split Column" = Table.SplitColumn(Unpivot, "Attribute", Splitter.SplitTextByCharacterTransition({"0".."9"}, {" "}), {"Attribute.1", "Attribute.2"}),
Trim = Table.TransformColumns(#"Split Column",{{"Attribute.2", Text.Trim, type text}}),
Pivot = Table.Pivot(Trim, List.Distinct(Trim[Attribute.2]), "Attribute.2", "Value")
in
Pivot
Stéphane
Hello ,
I have a scenario maybe it can help you :
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |