Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SSRS Date Parameter Default for Subscribed Report

$
0
0

Hi All,

I have a SSRS Report with two parameters.

1. StartDate

2. EndDate.

Now If user want to subscribe for this Report, I know how to subscribe. But what about Start and End Date parameter. I know there is something called Default, but what i want is as below.

1. Subscription for Daily. So i subscribe to run it for 8 AM daily. For start and end date it should take previous date.

Ex. If i am subscribing for 20/01/2013 then Start Date would be '19/01/2013 00:00:00' and EndDate should be '19/01/2013 23:59:59'

2. Subscription for Weekly. So i subscribe to run it for 8 AM Weekly. For start and end date it should take 7 days previous.

Ex. if i am subscribing for 20/01/2013 then Start Date would be '13/01/2013 00:00:00' and EndDate should be  '19/01/2013 23:59:59'

3. Subscription for Monthly. So i subscribe to run it for 8 AM Monthly. For Start and End Date it should be take 30 or 31 days accordingly

Ex. if i am subscribing for 20/01/2013 then Start Date would be '20/01/2012 00:00:00' and EndDate should be  '19/01/2013 23:59:59'

Note: This is only Single Report, which i want to schedule for Daily, Weekly and Monthly.

How can achieve this. I think i need to expression in Default value for what expression should i use. Any help is really appreciated,

Thank you


Thanks & Regards,
Manjunath C Bhat,
http://manjunathcbhat.blogspot.com
http://manjunathcbhat.wordpress.com


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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