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
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.