Hi, I'm trying to generate a sales report for each quarter (2015Q1, 2015Q2, 2015Q3 and 2015Q4) with Net sales for each product. I have a varaible called Prod_cat (product category) and prod_grp (product group). I want to nest Prod_cat and prod_grp so that for each Prod_cat I will have the groups( for ex: Prod_cat have RX and under this category I have Derm, Vision and Cancer). I'm trying to use proc report and generate Columns such as Prod_Cat, Quarter (Across) and Netsales (on the right side of the Column and at the bottom for each quarter. The table should look like this: Prod_Cat 2015Q1 2015Q2 2015Q3 2015Q4 NetSales RX Derm 100,000 105,000 200,000 325,000 730,000 Vision 120,000 102,256 250,200 155,200 627,656 Ears 123,000 205,200 260,100 183,245 771,545 Netsales 343,000 412,456 710,300 663,445 2,129,201 Can someone help me in getting this kind of a report using proc report. I'm just confused with the columns statement so that I get the Prod_cat and under that I get the Prod_grp and Netsales at the bottom and on the side. Thank you Malathi
... View more