Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

Re: How to Create a Date Variable

$
0
0

Hi Ademola,


Do you want to create a filter in the query which pulls data for 25 weeks only (last 12, current & next 12 weeks)?

If yes, then you'll have to create the filter in the Universe and then use it in the query. To do that, create a pre-defined filter with the below text in its Where clause (this syntax works with SQL Server database):

@Select(Foldername/DateObjectName) Between Dateadd(Week, -12, Getdate()) And Dateadd(Week, 12, Getdate())


Foldername/DateObjectName needs to be replaced the Date object you have in the Universe, e.g. Order Date, Report Date or something else.

 

If you've never created a filter in the universe, my responses in this will help.

Re: how do you schedule a report two months back

 

Thanks,
Mahboob Mohammed


Viewing all articles
Browse latest Browse all 3458

Trending Articles



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