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

Re: Dynamic default date filter in Query Panel

$
0
0

Vivek, Ya its database specific.. and you are right, by mistake i had given syntax for future saturday...

In SQL, you can use Dateadd or Datepart functions instead Next_day..

Last_Sat = DATEADD(day, -1 - (DATEPART(dw, GETDATE()) + @@DATEFIRST - 1) % 7, GETDATE()) AS LastSaturday

 

If you want to apply filter for all the blocks, better to create a object at universe level and use it in your query filter -- Web Intelligence.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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