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! It's time to submit your entry. Live now!
I have written a formula in Tableau which is this
([Per Unit Price ($)]-[Per Unit Cost ($)])*[Units Sold]
now i want to write in powerbi
can someone show me how to write it in PowerBI
Solved! Go to Solution.
Hi,
It depends if you want to use calculated column or measure. For calculated column just write: test_column = (unit price - unit cost)*Units sold. In case of measure: test_meamure = (sum(unit price) - sum(unit cost))*sum(unit sold).
Hi,
It depends if you want to use calculated column or measure. For calculated column just write: test_column = (unit price - unit cost)*Units sold. In case of measure: test_meamure = (sum(unit price) - sum(unit cost))*sum(unit sold).
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 45 | |
| 30 | |
| 24 | |
| 23 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 64 | |
| 38 | |
| 31 |