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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ridho72
New Member

Total Profit by SKU and the aggregate profit based on Qty sold.

Hi ,

 

I encounter an issue for getting Total profit using data from

 

 

Sales price per unit

SP/kg = 

DIVIDE(SUM('Penjualan'[Total]), SUM('Penjualan'[Qty]),0)

 

COGS per unit + Other Cost

HPP per kg plus OtherCost =
[HPP per kg All] + SUM('OtherCost'[OtherCost])

 

Profit per unit

Profit per unit = [SP/kg]-[HPP per kg plus OtherCost]

 

Total Profit

Total Profit =
([SP/kg]-[HPP per kg plus OtherCost])*SUM(Penjualan[Qty])

 

KSMT.JPG

 

The problem lies according to picture. I have 3 main products in which the Total Profit amount is correct but the aggregate amount does not tally.

 

Please help

 

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi ridho72,

 

Please check if you have built a relationship between 'Penjualan' and 'OtherCost'. In addtion, could you please provide table structures of your report?

 

Regards,

Jimmy Tao

Hi Jimmy!

 

This is my relationship table. It linked by SKU Name. Please advice.

 

 

Relationship Table.JPG

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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