@Velidi sorry, no data or attachments came through. You cannot attach anything via email.
Ideally, you can provide it as a data step following the instructions here:
If your WHERE condition is part of a SQL query, it could be as simple as
...
Where
CPT_4_Procedure_Code in (‘A3789’)
group by intnx("month", date, 0)
having sum(Line_item_units) > 4;
@Reeza that code handles the simplest case where the data is clean and the monthly intervals correspond to calendar months.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.