Formula for same period previous year
I'm trying to write a business rule creating a KPI which returns the value of an account for same period previous year.
I already have a working business rule creating a KPI which returns the value of the current period which has the following formula:
Return api.Data.GetDataCell("A#38999:T#" & api.Pov.Time.Name &"").CellAmountWhere 38999 is the account number for which I want to get values.
What formula should I use to, instead of the current period, get the current period but for the same period previous year?
Many thanks in advance!
