I need to create report using reporting services in MSSQL 2008 R2
The report should have a lot of date parameters. The problem is that every time user selects a date via date picker reporting service performs a postback.
The parameters are not cascading and “Never refresh” is selected for all of them.
For a test I’ve created a report with simple MDX without any dates and with only one parameter (location).
I also added two dummy date parameters to the report. Parameter order is Date1, Date2, Location.
Even in such a simple case I cannot stop reporting services showing “Loading” after date is selected.
Related
I am using Paginated Reports against a dataset in the cloud. I am trying to build a query parameter (not a report parameter). I want the report to function such that when user selects a date in the query parameter dropdown, the results will return the past 13 months, ending on the date they select in the slicer. I only see options for 'equal to', 'begins with','contains', 'range(inclusive)', 'ranage(exclusive)', nd 'custom'. I thought about modifying the query logic that is automatically created, but don't know how to modify it to bring back 13 months of data ending on the date they select in the parameter. Is there a way to do this in the paginated report itself? Trying to avoid having to create a PBI query and pass slicer values. Thanks for any ideas
I have a selection of SSRS report where the client has requested that there is a different reporting range for each schedule e.g. The daily schedule run Daily reporting on sales for the past day, the Weekly schedule to report on previous week etc. I am trying to use one "sales" report to do this and have different options for the "Start" date as a parameter that can be selected. I have set these up as "Available" values rather than a "Default" with the following:
Daily = =DateAdd("D",-1,Today())
Monthly = =DateAdd("M",-1,Today())
I have set up a scheduled for this report to run using the parameter and selected "Daily" but when this runs I get the following error message:
The subscription contains parameter values that are not valid.
And then if I look at the subscription settings, the "Start" parameter is completely blank forcing me to select Daily or Monthly again. If I were to instead set it up as a default value using one of those parameter mappings then it works absolutely fine. Is there a way to have these optional parameters, or am I going to be forced to create different Daily/Weekly/Monthly reports each with their own default parameters for the start times.
Note: When I debug the report with those parameters it runs absolutely fine, the issue is with the scheduled versions not keeping the parameters.
If you have access to data-driven subscriptions with your SSRS version, you can pass in multiple dates, emails, etc. This allows you to send out different versions of the report in one subscription.
Another option would be to add another parameter with the Daily/Weekly/Monthly option. Then have the default date use this parameter value to determine the date value. Then you could have 3 subscriptions on the same report each with their own interval selected.
I hope one of these options will work for you.
Is it possible for SSRS to name and separate pdf exported files based on parameter groupings? Right now, when I run the report, it only gives me one pdf with 100+ pages. However, at every page-break, I'd like SSRS to create a new pdf file, and it'd be a real time-saver if it would also insert the pdf's filename based on the grouping selection.
Is this possible in SSRS, or do i need to use SSIS for this functionality?
I'm using 'Visual Studio 2010' for SSRS, and 'SQL Server 2012' for integration services
You would be able to do all of what you want in SSRS - if you have the Enterprise edition that has Data-Driven Subscriptions.
https://msdn.microsoft.com/en-us/library/ms159150(v=sql.130).aspx
You would have a parameter for the grouping (your page-break) - for example UserID.
In your data-driven query (NOT the report but a different query used to fire the subscription), you would have a field for your grouping - your UserID in our example. Another field could have your ReportName that is derived from your data - ex.
UserID, 'ReportName for ' + UserName + ' on ' + GetDate() as ReportName
When the data-driven query runs, it will create a record for each UserID which in turn will fire a report for each UserID using it as the parameter to limit the report to just that userID. You could even have that report only e-mailed to that user.
There are ways to run data-driven subscritptions without the Enterprise Edition using SSIS but the do take a bit of work.
http://geoffbi.blogspot.com/2012/04/data-driven-subcriptions-in-standard.html
I'm still getting used to migrating from SSRS 2005 to 2008, in 2005 when you set a parameter up inside the report and pointed it to being a date/time the report gave you a calendar to chose your dates (as in a visual cal). I cant for the life of me get it to work in 2008? it just always shows the date/time of the field??
The data source is in the datetime format.
As you mention in a comment, you're populating this data with a DataSet.
The screenshot shows normal behaviour in SSRS 2005 and SSRS 2008.
I created a report in 2005 and 2008 with 4 parameters; two with type Text and two with type DateTime.
Two are populated with a DataSet based on:
select date1 = cast('01-jan-2013' as datetime)
union all select date1 = cast('01-feb-2013' as datetime)
The other two have a default value of =Today().
You can see that behaviour is almost identical between versions.
2005:
2008:
The only difference is that the Text parameter doesn't convert a date implicitly.
From your perspective the main things to note are that when the parameter is populated by a DataSet, you can only choose from a dropdown of the available values (i.e. what you're seeing in your screenshot), but if the parameter is not popluated from a DataSet (dropdown) you can choose from the calendar picker as expected.
I have a report in SQL Server 2008 Reporting Services (SSRS) that I'd like to schedule to run automatically for the previous dates (That Means this a Banking Related Report and the Transaction date is Today's Date ) I would like the Report to generate daily automatically for Yesteraday's date i.e. suppose Transaction date is 15-01-2012 I want to send yesterday s transaction date i.e. 14-01-2013 report daily to the customer.
Is it posible and how can I do this please explain.
Few steps here:
Set up the report to work with a default date parameter, and set the default expression to yesterday, e.g. =DateAdd(DateInterval.Day, -1, Today()).
Set the report to retrieve its Dataset based on the parameter.
Schedule the report through Report Manager and set the date parameter to use its default value, i.e. yesterday:
If you've never done it before, creating a subscription in Report Manager:
http://msdn.microsoft.com/en-us/library/ms189680.aspx