BookmarkSubscribeRSS Feed
Eugenio211
Quartz | Level 8

Hello!  I am using autofilter option in proc report.  however when I filtered the actual report it does not give me my desired output.  is there a way to filter in group?

 

Current ouputCurrent ouputI want to auto filter using the DM column to get the locations under the DMI want to auto filter using the DM column to get the locations under the DMthis is what happens when I filter using the DM columnthis is what happens when I filter using the DM column

image 1 is the current output, image 3 is what happens when I filtered using the DM column.  my desired output is that when I filtered using the DM it will also show the locations under the DM's name.

 

below is what I have coded for the autofilter:

 

ods excel file="\\pathdirectory\test_List.xlsx"
options(sheet_name='Campaign Summary'
frozen_rowheaders='2'
frozen_headers='4'
autofilter="1-2");

 

 

thanks a lot.

 

1 REPLY 1
Reeza
Super User
For Excel that means you need your DM column repeated in each column. You could then build a pivot table in this structure, but in this format, Excel will need the row repeated.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1158 views
  • 0 likes
  • 2 in conversation