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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (26)