I need a filter that allows me to compare the current month’s data with the same month from the previous year dynamically. For example, when January 2025 data is available, it should compare against January 2024. When February 2025 data becomes available, it should compare against February 2024, and so on. The filter should automatically adjust to always show the latest available month alongside the corresponding month from the previous year.
Hi @vboinap,
Take a look at the attached article that explores various periodoverperiod calculations:
Your calculation may look something like:
Month to date last year (aka LYMTD):
ifelse(dateDiff({order_date},now(),"MM") = 12 AND {order_date} <= addDateTime(-1,"YYYY",now()),sales,0)
Let us know if this helps with your case!