Hi, I have the following dataset in Enterprise Guide:
"New_customers_amount" are the amount of new "customer_id" per "Yearmonth_start_date". "Accounting_period" are which months a "Customer_id" has generated revenue
data CLV;
input Customer_id $ New_customers_amount Yearmonth_start_date $ Accounting_period
;
datalines;
11004345 71 202201 202201
11004345 71 202201 202202
11004345 71 202201 202203
11004345 71 202201 202204
88004686 71 202201 202201
88004686 71 202201 202202
88004686 71 202201 202203
11100257 71 202201 202201
11100257 71 202201 202202
12100557 71 202201 202201
12100557 71 202201 202202
75393716 58 202202 202202
75393716 58 202202 202203
26738388 58 202202 202202
26738388 58 202202 202203
;
I want to follow which months a new customer generate income for us. Here is the end result i am hoping for:
What do i do?
I honestly don't understand how the desired output is created from the input, or even what do you mean by Y1. I don't see any connection between the data you show and the output and the concept of "which months does new customers generate income"?
I need a lot more explanation and a lot more detailed explanation.
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.