BookmarkSubscribeRSS Feed
ralizadeh
Obsidian | Level 7

How do I get a total for each months in here? I've tried many ways and none worked so far.

 

ralizadeh_0-1686848915661.png  

ralizadeh_2-1686849044250.png

 

 

I want to have something like this:

ralizadeh_0-1686849912275.png

 

 

3 REPLIES 3
Reeza
Super User
Use the ALL and put it under Pregnant row in the builder.
Or try it in a few different places until you get it where you need it 🙂
ralizadeh
Obsidian | Level 7
No, that doesn't work. I tried that before. I almost tried all the possible locations.
Cynthia_sas
Diamond | Level 26

Hi:

  I don't have the same data, but I used SASHELP.PRDSALE, which has a MONTH variable, which I used for the columns and the COUNTRY variable, which I used for the rows. In Enterprise Guide, taking all the defaults, this is the Summary Table I designed and the resulting table:

Cynthia_sas_0-1686853101073.png

It's a little hard to describe the positioning. However, when you grab the ALL on the left side, when you drag it (the ALL term) over onto the table, you sort of have to not drop the ALL  until you see a blue highlight under the COUNTRY box to get the ALL at the bottom and then you have to grab the ALL a second time and drag it over to the right side of MONTH until you see a blue highlight and then drop the ALL on the right side. This is one of those instances, when I find the Summary Tables task to be too fiddly for me and I prefer to write code, which allows more control (in my opinion) over the options, labels and style:

Cynthia_sas_1-1686853307802.png

  Hope this picture of my Summary Table helps.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 1071 views
  • 3 likes
  • 3 in conversation