supportsvc
Technical User
Hello,
I can't seem to get this right.
What is the proper syntax?
I'm trying to have it return last year's data IF it's the current month (January) and current year only.
This is to run 4th quarter data after the end of the year.
So today is a new year and needs to be still producing last year's data then in Feb it'll show the current year's data, etc ....
I can't seem to get this right.
Code:
If {PR_EmployeeTaxHistory.CalendarMonth} = "01" and ToNumber({PR_EmployeeTaxHistory.CalendarYear}) = Year(CurrentDate()) then ToNumber({PR_EmployeeTaxHistory.CalendarYear}) = Year(CurrentDate())-1 else
ToNumber({PR_EmployeeTaxHistory.CalendarYear}) = Year(CurrentDate())
What is the proper syntax?
I'm trying to have it return last year's data IF it's the current month (January) and current year only.
This is to run 4th quarter data after the end of the year.
So today is a new year and needs to be still producing last year's data then in Feb it'll show the current year's data, etc ....