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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pcowman
Helper I
Helper I

ON ADD COLUMN: DIVIDE() function with two columns yields wrong result?

Hi,

I've looked into the queries on the boards but don't see a solution for my specific problem.

 

I have two fields which I need to divide. I have created sum measures for these fields but the divide function is still giving me an incorrect result. I tried changing it to Field/Field and still I get the same result. I saw in someone else's post that changing to measures corrected the row level problem but it isn't for me. It did get rid of infinity results and the result showing as 100,200 or more.

 

grossmargin.PNG

Estimated GM% = DIVIDE([Sum Planned]-[Sum Est Cost],[Sum Planned],0)

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

That Estimated GM% column in your visual (the one on the right without the space) looks to be giving the correct results based on your DAX, it's just not formatted as a percentage?

View solution in original post

2 REPLIES 2
jthomson
Solution Sage
Solution Sage

That Estimated GM% column in your visual (the one on the right without the space) looks to be giving the correct results based on your DAX, it's just not formatted as a percentage?

Crap you're right. Thanks. I did that several times and kept coming up with 85% not 92. just did it again and came out with 92. *bangs head*

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.

Top Solution Authors