Showing results for 
Search instead for 
Did you mean: 
New Member

Looking for help with in determining total units and matching to cost of goods sold in Excel

Link to sample excel I made:!Ahy9ZYzKXjd9gdo2UBseB0q0WrYbiw?e=IeerZX


This is a sales report that generates 4 rows for each transaction. And puts the total units sold in each row. For example, I circled the first transaction in which 1 item was sold of Widget 1 but there are four entries in the "Ship Qty" column.


I want to create another sheet with 3 columns. "Partner Item Id", "Total units sold", and "Total Cost of Goods" for my accounting and I cannot figure out how to extract just the shipped units from maybe the "Product Price" row only.  I will then match those units with my COGS (cost of goods sold) sheet to figure out my total COGS for this report date.


Any help would be appreciated. Thank you


Solution Supplier
Solution Supplier

@JoePaulTX - try this DAX and let me know if this works. Many Thanks 


Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors