BookmarkSubscribeRSS Feed
Petersi
Calcite | Level 5
When I use a BREAK statement on a group variable, the SUMMARIZE option will create a total for all columns. How do I suppress the summarization of certain columns (such as date values)?

I don't want to use a compute block because that will create one row spanning the entire report. I need the selected summarized values to line up under the appropriate column in excel.
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi, Peter:
The easiest thing to do is make your DATE variable a usage of DISPLAY. Here's the thing:
[pre]
define mydate / 'My Date';
[/pre]

without any usage on the statement (after the slash) is the same as asking for the SUM statistic of the ANALYSIS usage -- since the date is a numeric variable.

[pre]
define mydate / display 'My Date';
[/pre]

Should prevent the summarization of the date value (so will making it an ORDER or GROUP usage) -- but DISPLAY would be the place to start.

cynthia
Petersi
Calcite | Level 5
Thanks Cynthia!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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