Hi,
I have a dataset that contains exclusion tags per customer and reporting month. I want to be able to show a report (proc tabulate, report) that shows how many observations remain after each exclusion tags (like a waterfall type).
Goal:
For criteria 2 exclusions, the dataset should be the net of the criteria 1 exclusion.
Please provide input data (a small portion is fine), as SAS data step code (examples and instructions), and not in any other form. We can't write code without knowing the input data.
Pretty sure this wouldn't be a Proc Tabulate as it has very little in the way of "use a result from row x to calculate row y".
Looks more like a summary step to get the count per month overall and per "exclusion" then a pass through at data step.
But not even going to suggest dummy code without a small example as your data may be structured quite differently that I am imagining it to be.
Hint: Example data should not include more than may 20 total "exclusions" for a month and should include no more than 3 months unless more are needed to demonstrate some peculiarity of your data such as differing "criteria" per month.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.