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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Divide function returns incorrect results

Hello Experts,

 

I am facing an issue while using the simple Divide fuction. Some of the rows returns correct results while some returns incorrect  results as shown in the below screenshot..  I have also tried in other ways by using variables but no luck. Kindly help me out of it.

 

ajay_techbrawn_0-1644007987583.png

 

Regards,

Ajay Emmadi

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Give this a try, see if it works.

MAP Value =
DIVIDE (
    ROUND ( SUM ( 'Planning Dashboard'[Closing StockValue] ), 2 ),
    ROUND ( SUM ( 'Planning Dashboard'[Closing Stock] ), 2 ),
    0
)

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Give this a try, see if it works.

MAP Value =
DIVIDE (
    ROUND ( SUM ( 'Planning Dashboard'[Closing StockValue] ), 2 ),
    ROUND ( SUM ( 'Planning Dashboard'[Closing Stock] ), 2 ),
    0
)
jdbuchanan71
Super User
Super User

@Anonymous 

I am betting that the ones that look like wrong actually have a very small number after the decimal so it is not 0, it is 0.0000056 or something like that.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.