BookmarkSubscribeRSS Feed
Nithin
Calcite | Level 5
Hi,

We are currently using WRS 4.2. I have information map built on set of tables from database and are relational. I am in need of sub-total and total for particular report. I am not sure of how to achieve this.

Scenario:

Sales of product are grouped per month. Insetering Total display sales per month (sub-total). How can I get total sales (sum of all grouped values)?
4 REPLIES 4
Madelyn_SAS
SAS Super FREQ
You would need to have a report section with all values, or you could use this sample http://support.sas.com/kb/38/516.html Message was edited by: BIC_USER_3@SAS
Nithin
Calcite | Level 5
Hi,

Thanks for the link.
I do not want to create table of contents for grouped values. I want to display in same page. When I user "Insert Totals" option, the values within groups are summarized(summed). I want to calculate total of all the grouped values (Total Sum) and display at bottem of page.

-Nithin.
AngelaHall
SAS Employee
Don't know if this is an option for you, but you could append the 'total' to the raw data table being accessed - and include a term in your group variable for these records as 'Total'.

~ Angela
Nithin
Calcite | Level 5
Hi,

No, the total can be dynamic (based on criterea) and hence the totals cannot be added to raw data/data source.

The Sub-Total and Total options are needed in most of our current reports (with another tool). Hope SAS comes up with this option in future releases.

-Nithin

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
  • 4 replies
  • 1526 views
  • 0 likes
  • 3 in conversation