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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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