I basically took NetSales expression and tried to divide it in Sales Quantity, this is what I would do in a calculator, but it, of course, does not work in QS.
The expression summarizes the unit prices into one value, not counting the average unit price. The question is what average do you want to calculate, try the following:
1) For the weighted average, try the following expression (recommended)
2) For the average absolute value of unit prices, ask the developer to create a new field in the data model in which the unit price per line is calculated in the script and then just use the AVG function in the table AVG(DISTINCT #UnitPrice).