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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
giorgionway
Frequent Visitor

Price Cost Calculation

Hello,

can't solve this problem.

got two tables, Purchase Costs and Sales and I want to create report where I can see the price costs of the products.

I got this model in excel and I need in power bi. 

 

https://1drv.ms/u/s!Aucu3BmZNQw-p91n7YeUtylfsq2Fqw?e=v1npLa

5 REPLIES 5
giorgionway
Frequent Visitor

Hello,

can't solve this problem.

got two tables, Purchase Costs and Sales and I want to create report where I can see the price costs of the products.

I got this model in excel and I need in power bi. 

 

https://1drv.ms/u/s!Aucu3BmZNQw-p91n7YeUtylfsq2Fqw?e=v1npLa

 

 

 

 

Duplicated with:

https://community.powerbi.com/t5/Desktop/Price-Cost-Calculation/m-p/1546062


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @giorgionway ,

 

Believe this post is repeated with the one below:

 

https://community.powerbi.com/t5/Desktop/Price-Cost/m-p/1541392


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



ryan_mayu
Super User
Super User

@giorgionway 

just took a look at your sample excel file.

why the qty of sales on 1/3 is 1 not 2? why the qty 4 of 1/14 is under purchase not sales?

1.PNG





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

Proud to be a Super User!




@giorgionway Are you able to please answer Ryan's questions or if you have already solved this please let us know how so that others may benefit too. 

 

Thanks!


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors