Loading…
A product manager works out a margin percent for every order line and averages those percentages to get one figure per category. Finance divides total margin by total revenue and gets a different number for every category.
Return , revenue (the sum of ), cost (the sum of times the product's ), and (revenue minus cost, as a percentage of revenue, rounded to 1 decimal), with revenue and cost rounded to 2 decimals. Leave out items on with . Order by from highest to lowest, then by .
categoryline_totalquantityunit_costmargin_pctordersorder_statuscancelledmargin_pctcategoryCreate a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.