Forum Discussion

Diportee97's avatar
Diportee97
Helper I
1 year ago
Solved

Dax error

Hello guys,i have a problem with my Profit Column,I'm getting negative values and it's messing up my data,and here's how i calculated it; Sales Amount - Unit Cost * Quantity Sold Please help m...
  • Irwan's avatar
    1 year ago

    hello Diportee97 

     

    i think the formula should be reviewed.

    for example:

    the first line in your screenshot

    Sales Amount is $2.749,17

    Unit Cost is $2.037,41

    Quantity Sold is 34

     

    if the formula is "Sales Amount - (Unit Cost * Quantity Sold)", the result will be negative.

    however it will be positive if the formula is "(Sales Amount - Unit Cost) * Quantity Sold"

     

    Hope this will help.

    Thank you.