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
Anonymous
Not applicable

Odd result using divide

I have two calculated measures that I am trying to create a calculated column on but I am receiving odd results

 

Total_Tries     Wins           Win Rate

594                 281             281

1209               160             160

 

I am writing my last column as Win Rate = DIVIDE([Wins], [Total_Tries])

I was expecting to get the values 47.3% and 13.23%, but instead my calculation is only returning the value of "Wins".

 

Any ideas why this may be happening?

 

1 ACCEPTED SOLUTION
hnguy71
Memorable Member
Memorable Member

you should have received an error because you cannot divide by 0 but since you already have a measure to get the sum of tries you might as well do a measure to calculate the win percentage.

 

Measure =DIVIDE([Wins], [Total_Tries])



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
hnguy71
Memorable Member
Memorable Member

you should have received an error because you cannot divide by 0 but since you already have a measure to get the sum of tries you might as well do a measure to calculate the win percentage.

 

Measure =DIVIDE([Wins], [Total_Tries])



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

Thank you! For some reason, I made the assumption I would need to use a calculated column so it would work row wise. It makes sense now that I should have used a calculated metric instead.

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.