I want to show Month YoY dynamically

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!