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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.