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!View all the Fabric Data Days sessions on demand. View schedule
I would like to create variance but my data stored in rows instead of columns. previously in Ms Excel was easy to create a pivot and make a calculation using different column.
in PowerBI I have 1 row for revenue and 1 row for cost. I would like to create the margin using the revenue-cost formula, but im not aware what would be the easiest and calc view the fastest way to create it? where should I look at it?
please note:
Im a rookie in PowerBI
Hi. I don't think you should work like that at all. You can transform your data in Power Bi to work with columns instead of rows because power bi works with columns.
Try unpivot like this post showing both actions:
https://databear.com/power-bi-pivot-and-unpivot-columns/
Then you can work with columns again. I don't recommend working with rows.
Regards,
Happy to help!
Hi @Anonymous
there are Pivot and Unpivot functions in Power Query Editor mode
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!