How do I get a total for each months in here? I've tried many ways and none worked so far.
I want to have something like this:
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:
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:
Hope this picture of my Summary Table helps.
Cynthia
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!
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.
Ready to level-up your skills? Choose your own adventure.