0
我有一個具有不同店內活動(戰術)的SKU -week數據。我想通過戰術來總結每個變量。粘貼SAS中的代碼:按組進行彙總,如proc sql
proc sql;
create table lp.lp_sku_report1
as select distinct(tactic), sum(Sales_Stat_Case_10_Lt) as Sales_Stat_Case_10_Lt, sum(Sales_Units) as Sales_Units, sum(Sales_Dollars) as Sales_Dollars, sum(Baseline_Stat_Case_10_Lt) as Baseline_Stat_Case_10_Lt, sum(Baseline_Units) as Baseline_Units, sum(Baseline_Dollars) as Baseline_Dollars
from lp.lp_sku_data
group by tactic; quit;
約呈小再現的例子如何? – akrun