Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how do I modify the code below to be able to 1 year less than the SELECTED year? I tried adding the ADDYEARS and a -1 to the code, but couldn’t get it to work correctly.
=Num(Sum({<[Account Description] = {'Total COGS'}, MonthYear = {"$(='>' & Date(AddMonths(QuarterStart(AddMonths(Max(MonthYear), 1))-1, -12)) & '<=' & Date(QuarterStart(AddMonths(Max(MonthYear), 1))-1))"}, Year, Month, Quarter>} Actual),'#,##0')
Thank you for any assistance you can offer!!!!
Kelly
May be this:
=Num(Sum({<[Account Description] = {'Total COGS'}, MonthYear = {"$(='>' & Date(AddMonths(QuarterStart(AddMonths(Max(MonthYear), 1))-1, -24)) & '<=' & Date(AddMonths(QuarterStart(AddMonths(Max(MonthYear), 1))-1, -12))"}, Year, Month, Quarter>} Actual),'#,##0')
what is ur year format ?
-nagarjun
May be this:
=Num(Sum({<[Account Description] = {'Total COGS'}, MonthYear = {"$(='>' & Date(AddMonths(QuarterStart(AddMonths(Max(MonthYear), 1))-1, -24)) & '<=' & Date(AddMonths(QuarterStart(AddMonths(Max(MonthYear), 1))-1, -12))"}, Year, Month, Quarter>} Actual),'#,##0')
2008
I added an additional
)
after the last -12 and it worked like a charm!
Thank you - Sunny T!
Kelly
Right, I forgot to add that ![]()
Wow, you just pushed my past 100,000 ![]()
YAY Sunny T! Congrats!
Thanks Kelly ![]()