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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear all,
In my db I have the following table:
| CHAP | BUDGET | YEAR |
| DIRECT COSTS | 1000 | 2019 |
| INDIRECTS COSTS | 400 | 2019 |
| DIRECT COSTS | 1200 | 2020 |
| INDIRECTS COSTS | 500 | 2020 |
How can I trasform it in the following?
| YEAR | DIRECT COSTS | INDIRECT COSTS |
| 2019 | 1000 | 400 |
| 2020 | 1200 | 500 |
Thanks for your help
Paolo
Solved! Go to Solution.
In the query editor, highlight the Chap column, on the Transform tab choose pivot column. Choose the Budget column as the values and choose Don't Aggregate from the pull down. Rename the columns to what you want.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
In the query editor, highlight the Chap column, on the Transform tab choose pivot column. Choose the Budget column as the values and choose Don't Aggregate from the pull down. Rename the columns to what you want.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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!