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
I am trying to transfer a simple formula to calculate net profit from one dashboard to another, the DAX statement appears to be correct when employed but it returns back a syntax error once I hit the save button.
This is the DAX statement:
Net Profit1 =
IF (
ISBLANK ( SUM ( Sales_marketplace[Purchases_combined.price] ) ),
0,
CALCULATE (
SUM ( Sales_marketplace[price_total] )
- SUM ( Sales_marketplace[Purchases_combined.price] )
- SUM ( Sales_marketplace[per_imei_repair_cost] )
- SUM ( Sales_marketplace[shipping_cost] ),
FILTER (
Sales_marketplace,
Sales_marketplace[Purchases_combined.price] <> BLANK ()
)
)
)
And this is the syntax error returned:
The syntax for 'CALCULATE' is incorrect. (DAX(IF ( ISBLANK ( SUM ( Sales_marketplace[Purchases_combined.price] ) ), 0. CALCULATE ( SUM ( Sales_marketplace[price_total] ) - SUM ( Sales_marketplace[Purchases_combined.price] ) - SUM ( Sales_marketplace[per_imei_repair_cost] ) - SUM ( Sales_marketplace[shipping_cost] ), FILTER ( Sales_marketplace, Sales_marketplace[Purchases_combined.price] <> BLANK () ) )))).
Thank you very much in advance
Maybe it will help somebody looking at this in the future. I had very simmilar issue with the calculated table. Simply publishing the report to my workspace when the formula was in the working state fixed the issue and now the error no longer appears when I hit save.
You are already filtering the blank sums. No need for a calculate.
Net Profit1 =
IF (
ISBLANK ( SUM ( Sales_marketplace[Purchases_combined.price] ) ),
0,
SUM ( Sales_marketplace[price_total] )
- SUM ( Sales_marketplace[Purchases_combined.price] )
- SUM ( Sales_marketplace[per_imei_repair_cost] )
- SUM ( Sales_marketplace[shipping_cost] )
)
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |