Hi,
I am using BO 4.1 sp3, Sqlserver 2012 and need to create current year, current month using following formulas which are executing perfectly in sqlserver2012 but in IDT 4.1 giving the following error
formulas
1) Current Year
SELECT
case month(getdate())
when 1 then
year(dateadd(yy, -1, getdate()) )
else
year( getdate())
end
2) Current Month
SELECT
DATEPART(MM,GetDate())
IDT Error:
Invalid expression
The query does not reference any table when attempting to build the where clause (IES 00022)
as I have to filter Year_entered=Current Year and Month_Entered=Current Month