By using this website, you agree to our Terms of Use (click here)
I'm working on writing a comparative report. We have an April 30th year-end, so I like to use written out months and years on reports (rather than period). The formula below shows in the report correctly (i.e. November 2019).
=Format( '{0: MMMM yyyy}',Report.GetPeriodEndDate(@StartPeriod) )
How do I write it to shift the year back one for the prior year comparative column (i.e. I am trying to show November 2018 data). I have tried adding a -1 but I get an error message of "The expression contains a call of an undefined function".
Help and thank you!
Try this
=Format( '{0: MMM d, yy}', DateAdd( Report.GetPeriodEndDate(@StartPeriod), 'm', 1))
Try this for going back one year:
=Format( '{0: MMM d, yy}', DateAdd( Report.GetPeriodEndDate(@StartPeriod), 'y', -1))