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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1273 views
  • 0 likes
  • 2 in conversation