BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Nimish28
Calcite | Level 5
Hi All

I have a dataset like this
Id pcp_id date
1 2222 202001
1 2222 202002
1 3333 202003
1 3333 202004
1 3333 202005

So the output should be like
Whenever the pcp_id for a id changes is a churn and should be in the output, so in the above case the pcp changes at 202003 so it has to be the output.

Need your help to build a logic for this.

Thanks in advance
1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
Nimish28
Calcite | Level 5
Thank You Kurt , logic worked absolutely fine.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 747 views
  • 0 likes
  • 2 in conversation