Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Dates error in IDT

$
0
0

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


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>