I am trying to input a Formula in PowerPivot as below -
=IF(OR([Month]=1,[Month]=2,[Month]=3),YEAR([Excise_Invoice_Date]-1),YEAR([Excise_Invoice_Date]))
I However realized OR can handle only 2 Arguments in Power Pivot.
I simply want the Year to be returned as the Actual Year - 1, if the Month serial number is 1,2 or 3.
However, the Formula is returning an Error.
Can anyone help?
Deep
=IF(OR([Month]=1,[Month]=2,[Month]=3),YEAR([Excise_Invoice_Date]-1),YEAR([Excise_Invoice_Date]))
I However realized OR can handle only 2 Arguments in Power Pivot.
I simply want the Year to be returned as the Actual Year - 1, if the Month serial number is 1,2 or 3.
However, the Formula is returning an Error.
Can anyone help?
Deep