HFM 11.1.2.3.700 Rules
I am writing a rule with Period and Year parameters. The goal is to calculate the balance in an account with the Jun period end balance for Jul-Dec 2017. For 2018 and beyond the account should calculate the prior year in. When the rule is loaded the account is not calculating at all.
If (povYear = "2017" and povPeriod => "Jul") then
HS.Exp "A#8700 = A#2221.C4#ReportedDetail.P#Jun.Y#2017+ A#2222.C4#ReportedDetail.P#Jun.Y#2017 + A#OtherPrePay.C4#ReportedDetail.P#Jun.Y#2017"
HS.Exp "A#8600 = A#2818.C4#ReportedDetail.P#Jun.Y#2017"
ElseIf povYear > "2017" then
HS.Exp "A#8700 = A#2221.C4#ReportedDetail.P#Last.Y#Prior+ A#2222.C4#ReportedDetail.P#Last.Y#Prior + A#OtherPrePay.C4#ReportedDetail.P#Last.Y#Prior"