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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KBO
Memorable Member
Memorable Member

Avoiding -100% in calculations

Hi,

may be thats a stupid question but how can I avoid the -100% if I divide a value by a blank field.

Let me show you my problem :):

DAX.png

 

I only created a Measure with the last month and than I try to calculate the %.

Can anybody help?

As you can see I'm not a DAX person 😄

 

Best,

Kathrin

1 ACCEPTED SOLUTION

Change the formula to

Percent Change = IF([SP Last Month] <> 0, DIVIDE([SP Last Month]-[Total],[Total], 0))

View solution in original post

4 REPLIES 4
jeffrey_wang
Power BI Team
Power BI Team

if your formula is x/y - 1, change it to divide(x - y, y).

Hi @jeffrey_wang ,

my formular is like you meantion 

Percent Change = DIVIDE([SP Last Month]-[Total],[Total], 0)

Best,

Kathrin 

Change the formula to

Percent Change = IF([SP Last Month] <> 0, DIVIDE([SP Last Month]-[Total],[Total], 0))

Hi @jeffrey_wang ,

awesome 😉

It works great, thank you very much.

Thats why I love this community so much 🙂

 

Best,

Kathrin

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.