Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have been working on one report where I need to conver columns into rows and make that rows as Header.
This is what I have:
This is what the result should look like
Any help or suggestion would appreciate it.
Thanks in Advance for your inputs.
Solved! Go to Solution.
Hi,
Please try to use Table.Pivot M code.
Table.Pivot - PowerQuery M | Microsoft Learn
let
Source = source,
#"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[field1]), "field1", "field2")
in
#"Pivoted Column"
Hi, you can pivot the column through Power Query UI as well:
1. Select Field 1 column, under Transform click Pivot.
2. In Pivot window, Select 'Field 2' for Value Column and 'Dont aggregate' for Aggregate Value Function.
Hope this makes it simpler:)
Thank you both for your response.
Both solution worked perfectily as expected.
Thanks
Hi, you can pivot the column through Power Query UI as well:
1. Select Field 1 column, under Transform click Pivot.
2. In Pivot window, Select 'Field 2' for Value Column and 'Dont aggregate' for Aggregate Value Function.
Hope this makes it simpler:)
Hi,
Please try to use Table.Pivot M code.
Table.Pivot - PowerQuery M | Microsoft Learn
let
Source = source,
#"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[field1]), "field1", "field2")
in
#"Pivoted Column"
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 43 | |
| 41 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 188 | |
| 118 | |
| 96 | |
| 64 | |
| 45 |