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
Whenever I consume my model from excel, if I put the next measure it crashes:
Measure1:=
IF
(
NOT [Measure1] < 0,
DIVIDE ( [Measure2], [Measure1])
)
Why is this happening?
(it works fine in power bi desktop)
Hi @Anonymous ,
Are you sure it works fine in power bi? The [Measure1] can't be divided itself or use itself in its definition expression.
Measure1:=
IF
(
NOT [Measure1] < 0,
DIVIDE ( [Measure2], [Measure1])
)
I think you should want to calculate certain values cumulatively. If so, you can refer to a similar blog.
The CALCULATE Function In Power BI - DAX Tutorial - Microsoft Power BI Community
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , a model working in power bi should work in excel. Hope we are taking of power bi dataset?
IF
(
[Measure1] <> 0,
DIVIDE ( [Measure2], [Measure1])
)
or
DIVIDE ( [Measure2], [Measure1])
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 |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |