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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Diportee97
Helper I
Helper I

Dax error

IMG_0719.jpeg

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 me out

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

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.

View solution in original post

1 REPLY 1
Irwan
Super User
Super User

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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