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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
R_Ambica
New Member

DAX HAI I HAVE PROFIT ,SALES AND QUANTITY HOW TO CALCULATE THE COST PRICE OF THE PRO

how to calculate the cost price when sales,profit and quantity is given in the table please anyone help me to get this issue resolve

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

You can create a calculated column to get the Cost Price

 

Cost Price per Unit= Divide([Sales],[Quantity]) - Divide([Profit],[Quantity])







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
FarhanAhmed
Community Champion
Community Champion

You can create a calculated column to get the Cost Price

 

Cost Price per Unit= Divide([Sales],[Quantity]) - Divide([Profit],[Quantity])







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




AliceW
Impactful Individual
Impactful Individual

Something like this. Say you have:

Sales = 5000 Euros

Profit = 100 Euros

Quantity = 200 pieces

We deduce that:

Cost = Sales - Profit = 4900 Euros

Cost per unit = Cost / Quantity = 24.5 Euros

 

Yes like this.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello,

 

so you could add a column and make a measure Cost = sales - Profit

and to get cost per item = Cost / quantity

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.