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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I've seen this error a few times in these forums but I cannot figure out how to apply those solutions to my own error.
Here are what my columns look like:
I have created a custom column using the following language to remove any "divide by zero" errors. All columns have been changed to a "type number" prior to me adding the custom column. Can anyone suggest a solution and explain why the error is produced?
= Table.AddColumn(#"Changed Type", "Custom", each if [Marlinn.Job allocations] and [#"Marlinn.Non-job allocations"] = 0 then [#"Marlinn.Qty on-hand"]
else if [Marlinn.Job allocations] = 0 and [#"Marlinn.Non-job allocations"] <> 0 then [#"Marlinn.Qty on-hand"] - ([Marlinn.Extended cost] / [#"Marlinn.Non-job allocations"])
else if [#"Marlinn.Non-job allocations"] = 0 and [Marlinn.Job allocations] <> 0 then [Marlinn.Job allocations]
[#"Marlinn.Qty on-hand"] - ([Marlinn.Extended cost] / [Marlinn.Job allocations])
else
[#"Marlinn.Qty on-hand"] - ([Marlinn.Extended cost] / [Marlinn.Job allocations]) + ([Marlinn.Extended cost] / [#"Marlinn.Non-job allocations"]))
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!