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!
HI, i have a formula who works like this:
Solved! Go to Solution.
Use the DIVIDE function, it accounts for a divide by zero error
Hi @marcos_osorio,
You can use an IF statement.
TH Total Unit Margin =
IF (
SUM ( 'BI Analysis'[Qtty] ) = 0,
BLANK (),
CALCULATE (
SUM ( 'BI Analysis'[Amount] ) / SUM ( 'BI Analysis'[Qtty] ),
YEAR ( 'BI Analysis'[DATE RECORD] ) > 2017,
'Type of Data'[TYPE] = "Result"
)
)
Best regards,
Yuliana Gu
Use the DIVIDE function, it accounts for a divide by zero error
Thank you very much!
I have a lot to learn of Power BI.
Thanks Again!
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 |
|---|---|
| 69 | |
| 45 | |
| 36 | |
| 28 | |
| 23 |
| User | Count |
|---|---|
| 141 | |
| 124 | |
| 59 | |
| 40 | |
| 32 |