Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

dax measure problem in excel?

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)

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

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.

amitchandak
Super User
Super User

@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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.