I have the following data, I'd like to create a report with a cross table.
| rec_id | company_id | signals | month |
| 1000 | 1 | 1 | October |
| 1001 | 1 | 0 | October |
| 1002 | 2 | 1 | October |
| 1003 | 2 | 1 | October |
| 1004 | 2 | 0 | October |
| 1005 | 3 | 1 | October |
In the report I would like to have
the count of the rec_id
the distinct count of company_id (which I did with aggregated value and distinct)
the sum of signals
a signal per company_id so for company A 1 signal, B 1 signal (not 2 signals) and C 1 signal
The signal column doesn't have values more than 1.
How can I create such an aggregated value?
Hello @GreyHamster ,
Creating needed variables:
Best regards,
Petri
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.