diff --git a/route_sql/scenario_package.sql b/route_sql/scenario_package.sql index fa5414c..e1af6bc 100644 --- a/route_sql/scenario_package.sql +++ b/route_sql/scenario_package.sql @@ -50,8 +50,7 @@ GROUP BY part_descr ,bill_cust_descr ,ship_cust_descr - ,SUM(units) units - ,SUM(value_usd) value_usd + ,SUM(value_usd)/(SELECT SUM(value_usd) FROM baseline) mix FROM base GROUP BY @@ -59,7 +58,7 @@ GROUP BY ,bill_cust_descr ,ship_cust_descr ORDER BY - value_usd desc + mix desc ) ,months AS ( SELECT