Goal: Check prior period Year To Date total to see if it >= 98,910 . True = 0 False = Wages * 0.062 (For all of you in the USA we love the tax known as FICA)
Code: Select all
['601910'] = N: IF( ['601910',ATTRS('Month',ATTRS('Month',!Month,'Prior Period'),'Short Name')|" YTD"]>=98910
,0
,(['601310']*0.062);
Month Dimension Detail
Element, Prior Period, Short Name
1, 12, JAN
2 , 1 , FEB
3 , 2 , MAR
4 , 3 , APR
5 , 4 , MAY
6 , 5 , JUN
7 , 6 , JUL
8 , 7 , AUG
9 , 8 , SEP
10 , 9 , OCT
11 , 10 , NOV
12 , 11 , DEC
FEB YTD,
MAR YTD,
Etc
Excuse the formatting... don't know what to do to fix it?