Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to figure out how to get the COGS per individual sales in Power BI. (I put the Sales table from Power BI into excel to show it easier.)
Sales Table
Invoices Table (Has what products are bought for the store and how much each cost)
So right now the Sales table shows the total cost of COGS for the highlighted sales of ASIN "B00HSRVBAG" for a Quantity of "8" is $22.00. It should be a total of 1@$1.00 + 1@$2.00 + 6@$3.00 for a total of $21.00.
Currently for COGS I am using this
Thanks for any help.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |