BookmarkSubscribeRSS Feed
ask77
Calcite | Level 5

I work on health care claims and right now I have a task to determine if any date ranges for a single patient overlap and I need to count the number of overlapping days for each date range for that patient. Here is the snap shot of the data. Also for the overlapping days I need to calculate the total dosage and also calculate the average dose for those overlapping days. Any help is greatly appreciated.

 

overlapping date rangesoverlapping date ranges

1 REPLY 1

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

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1409 views
  • 0 likes
  • 2 in conversation