Disclaimer
Chatgpt helped med writh much of this but the text says what I want it to,
Description:
Currently, the aggregation.aggregate action in CAS requires separate runs to produce multiple grouping levels (e.g., detail rows plus totals by a subset of the groupBy variables). Unlike other SAS aggregation tools (such as PROC MEANS with the WAYS statement), there is no built-in way to produce hierarchical roll-ups or all-combinations totals in a single execution.
Proposed Enhancement:
Introduce an parameter in aggregation.aggregate bygroup parameter similar to ALL in proc tabulate or the capabilities like PROC MEANS WAYS statement.
Alternativly, parameters such as this below could be an alternative.
Use case:
Example Use Case:
Aa analytics team needs:
Today, these require multiple aggregation.aggregate calls and post-processing merges. With some sort of by group total parameter, all could be produced in a single action step.
Currently I have been able to simulate this usinf Cas arrays and formats, but the numbers of needed dimensions in the array grow exponentially with the number of variable you need to have totals for, eventuall becoming unweildly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.