BookmarkSubscribeRSS Feed
Gigawatt
Calcite | Level 5

When creating the ODS Excel file I want to be able to "group" columns in the excel file and have the user be able to use the Excel function to expand/collapse the columns to show the grouped columns or not.

 

Example data All data exists in the dataset and not calculated within the proc report.

 

Market             Jan          Feb     Mar       Q1    Apr ........     Q4    YTD

A                      10            10        10        30      10               30    120

B                      10            10        10        30      10               30    120

C                      10            10        10        30      10               30    120

 

When the excel file is opened their is an "outline" created for the grouped data. If the user clicks on the [-] above the columns, the month columns for Jan Feb Mar Apr ....  will "auto hide" and only the Quarterly columns (Q1, Q2 ...) will show. The user can then also clock the plus above the columns to redisplay the months

1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
That sounds like something you have to do at the Excel end of things with an Excel macro or a VB Script.

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1202 views
  • 0 likes
  • 2 in conversation