Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Webi Custome Query Script - Previous 12 Months

$
0
0

Team,

 

I am trying to add a custom query script in my WEBI report Query Panel.  All im trying to do is add a Where statement to look at any date greater than 12 months ago.

 

SAP BusinessObjects BI Platform 4. Support Pack 6 Patch 2

Version 14.1.6.1785

 

 

The line that's failing is:

 

WHERE

   (

     Table_2."IDAT2_CONV" > DATEADD(mm, -12, GETDATE())

 

 

Its saying "Invalid name of function or procedure:  DATEADD: line 150 col 29.

 

 

 

It was working with the BETWEEN function below.

 

WHERE

     (

      Table_2."IDAT2_CONV" BETWEEN '2014-01-01 00:00:00' AND '2015-10-19 00:00:00'


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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