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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
netanel
Post Prodigy
Post Prodigy

How to get rid of "infinity" ?

Hi All!

 

I have this sample Measure:

Gross Budget Diff% = [Gross USD AVG] / [Gross Sum January] -1
 
And I can not get rid of the text "Infinity"
Instead of getting 0
Anyone know this?
infinity.JPG
 
 
 
 
 
 
 
 
Please help
 
Thanks!
 







Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki
1 ACCEPTED SOLUTION

@netanel This is because of -1 at the end. So do you need it? if not you can remove it or if you need it then you can try below code:-

Gross Budget Diff% = 
var result = Divide([Gross USD AVG], [Gross Sum January],0)
return if(result=0,0,result - 1)

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

Hi @netanel ,

 

Try this:-

Gross Budget Diff% = Divide([Gross USD AVG], [Gross Sum January],0) -1

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

@Samarth_18 

i get - 100% insted

infinity 1.JPG








Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki

@netanel This is because of -1 at the end. So do you need it? if not you can remove it or if you need it then you can try below code:-

Gross Budget Diff% = 
var result = Divide([Gross USD AVG], [Gross Sum January],0)
return if(result=0,0,result - 1)

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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