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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ajay_techbrawn
Frequent Visitor

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

@ajay_techbrawn 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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