This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
So as each month passes i send out reports to be analyzed. The bosses like the format of 4 columns
YTD Sales vs Last Year Sales
then Previous Month Sales vs Last Year Previous Months Sales. I wish to automate these reports so i never have to touch them just run the schedule.
I have no issues with the 2 columns for YTD Sales vs Last YTD Sales those are pretty straight forward formulas
This issue I come across is the Previous Month Sales Column as this formula works perfect except in January for the new year. Cause in Jan for the new year I want Dec of 2019 sales as my "Previous Month" sales. Any suggestion on how to tweak the below formula to work as I need?
iif([year]=datetimeyear(todate(DateTimeNow())) and [Month]=datetimemonth(datetimeadd(todate(DatetimeNow()),-1,"months")),[CE Beer],0)