Forum Discussion

kristeltulio's avatar
kristeltulio
Regular Visitor
4 years ago
Solved

Divide function not calculating correctly

Hi I would like to ask for help. I'm trying to use the DIVIDE function but I'm not getting the right result. Below is my calculation:

Breakeven YTD =
- DIVIDE(
[Overheads] + [Other Income],
[GP %],0)

// Breakeven YTD = -(Overheads + other income) / GP%

 

if I calculate it the result should be 348055-5426 = 342629 / 0.206 = 1,663,247.57 but I'm getting 1,664,245

Here is the result

 

  • Hi kristeltulio ,

     

    Please try the following formula:

     

    Breakeven YTD = 
    - DIVIDE ( [Overheads] + [Other Income], ROUND ( [GP %], 3 ), 0 )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi kristeltulio ,

    You are most likely dealing with a rounding error.  Would you please supply us with the .pbix?


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
    Nathaniel

  • v-kkf-msft's avatar
    v-kkf-msft
    Community Support

    Hi kristeltulio ,

     

    Please try the following formula:

     

    Breakeven YTD = 
    - DIVIDE ( [Overheads] + [Other Income], ROUND ( [GP %], 3 ), 0 )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Hi Nathan 

    Sorry I can't share the pbix file because it's a financial report. Is there a way to fix this rounding error by using ROUND function?