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
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!
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!