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 using the formula in m language calculated column "=if Value.Is([#"MDBF Years.2018 - YEAR 1"],0)then [#"MDBFMileage.MDBF Mileage Year 1 - 2018"] else ([#"MDBFMileage.MDBF Mileage Year 1 - 2018"]/[#"MDBF Years.2018 - YEAR 1"])"
The goal is to identify fields with the number zero, I attempted to replace "0" with null and still return an "ERROR"
Does anyone have any guidance on this formula?
Solved! Go to Solution.
@erikah06
Try the normal if statement
=if
[#"MDBF Years.2018 - YEAR 1"]=0
then
[#"MDBFMileage.MDBF Mileage Year 1 - 2018"]
else
[#"MDBFMileage.MDBF Mileage Year 1 - 2018"]/[#"MDBF Years.2018 - YEAR 1"]
@erikah06
Try the normal if statement
=if
[#"MDBF Years.2018 - YEAR 1"]=0
then
[#"MDBFMileage.MDBF Mileage Year 1 - 2018"]
else
[#"MDBFMileage.MDBF Mileage Year 1 - 2018"]/[#"MDBF Years.2018 - YEAR 1"]
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |