BookmarkSubscribeRSS Feed
Bertrice
Calcite | Level 5

I have a table  contains the column of  stores, département , date and  sale by week

I would like to know how I can write to get the total sales by departement. there are 98 departement .

and( magasin 1 ) for exemple has is  every week sale  for 2 years.

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

We need to see test data in the form of a datastep and required output to have any chance of answering your question.  As such all I can say is that proc means/summary/sql are ways of getting total counts.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1820 views
  • 0 likes
  • 3 in conversation