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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.