Our standard practice with monthly data being loaded into VA is to have not only the actual date being reported on but to also add a "Month Counter" column that is set to 0 for the current month, 1 for the previous month, 2 for 2 months back and so on. That way current versus previous month comparisons are easy - a filter selecting Month Counter of 0 and 1 will get the required data.
This approach works best where you completely reload your data each time you update.
This code snippet shows how to derive a month counter:
Reporting_Month = intck('MONTH', Reporting_Date, today());
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.