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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Hemanth_PBI
Frequent Visitor

Calculating Profit Margin Year Wise

Hi,

I'm trying to calculate profit margin % for each year. Instead of showing profit % for each year i'm only getting static percentage. Can anyone point what i'm missing here.

GP_Margin = DIVIDE([GROSS PROFIT],[Total sales],0)
GROSS PROFIT = [Total sales]-[total cost]
total cost = SUMX('Sales GP Report','Sales GP Report'[Standard Inv Cost Amount])
 gp.png
1 REPLY 1
amitchandak
Super User
Super User

@Hemanth_PBI , hope all of these are measures [Total sales],[total cost], and GROSS PROFIT 

 

GP_Margin = DIVIDE([GROSS PROFIT],[Total sales],0)
GROSS PROFIT = [Total sales]-[total cost]

 

if the cost is coming from a different table, make sure you are using a common date table in visual and formula

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.