I am trying to create a calculated field that uses a nested if statement and calculates a payincrease. Example:
If year(today)- year(hiredate)< 5 then salary*.05
else If year(today)- year(hiredate)> 10 then salary*.08
else salary*.07 Reporting services tells me I have an error.
I have used this calculations in other programs so it must be something about the syntax in ReportingServices.
If year(today)- year(hiredate)< 5 then salary*.05
else If year(today)- year(hiredate)> 10 then salary*.08
else salary*.07 Reporting services tells me I have an error.
I have used this calculations in other programs so it must be something about the syntax in ReportingServices.