I currently have to run a report weekly back to 2014 till now. Is there a way where I can provide it a date range of 4 months and the report can be divided by calendar weeks within the date range?
Any questions, feel free to ask. Thanks
Create a data-driven subscription on the report.
Build a query that returns a table with one row per each set of parameter values you want to run. Assign the columns to the correct parameter and then run the subscription.
If you have specified a file share as the output, all the different versions of the report will output to that share.
Obviously this requires you to provide SSRS access to that file share.
Related
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.
I was tasked with replacing old reports made in Crystal Reports since SSRS is the standard we are using. The core functionality of the new SSRS reports works fine but there's one thing missing. It's not insanely important but it's been bugging me. One of the tables in the database I'm working on tracks tasks that have been worked on and stores the Monday of the week they were completed on as a datetime, as well as time spent etc.
Currently my reports allow for the user to choose a start week from a list of Mondays, and an end week. This along with other things are sent to a stored procedure to get the data needed for the report, with the where clause including
AND (Table).WeekStartDate BETWEEN (#paramStartWeek) AND (#paramEndWeek)
In the older Crystal Reports ones the query and filtering is done entirely in the report instead of a stored procedure. It seems to allow a list of different, specific intervals. If I wanted info from two weeks of 2015 and then 5 weeks from 2018 to appear in the report (for some reason) I could keep adding intervals to a list.
Normally you could do something similar in SSRS by setting the parameter to accept multiple values and parsing the string it creates in the stored procedure, but if i selected multiple start and end dates as two separate parameters there would be nothing saying which start went with which end.
Most of examples of this I've seen only allowed for predetermined amounts of time ("One month ago, three months ago, a year ago") but I would like for it to be any week needed.
The person I'm doing this for would like most of the filtering done outside of the report, so I'm wondering if anyone knows an easy way to get a list of specific date ranges from SSRS into a stored procedure.
I am trying to take a report that has employee pay data for a specific date range. It works fine. My problem is I need to take and put in YTD data of hours worked and total paid from the beginning of the year to the ending date parameter. I created a subreport that gets me that data. What I am having trouble with is getting the subreport to return the data, per employee, in line with the main data. When I used Crystal Reports I could link the main table to the subreport without creating parameters. Not sure if there is an equivalent or a work around. Thanks in advance
Mike
I have a series of reports that run at different schedules (hourly, daily, weekly, etc)
The reports are saved to a share \unc\reports\department\
report
report_1
report_2
report_3
As this is the only way to create a new version.
My question is if there is a way to append either execution time or even just the date so the end user can see the time the report was generated.
Currently it is done by looking at date modified properties, which is Ok, but not ideal.
You can capture the runtime with #timestamp variable and stamp it with your Report filename. Append #timestamp with your filename in the subcription manager as shown below.
yes, this is possible, you would need to use a data driven subscription. Here is a good how-to on it:
http://www.bidn.com/blogs/briankmcdonald/bidn-blog/1255/appending-date-to-end-of-report-name-in-reporting-services-subscription
I have a bear of a problem here. The user wants a report that shows the earnings, deductions and liabilities (EDL) code of each employee or null/blank if an EDL code doesn't apply to that employee. I needed one row for each employee name and columns for each possible EDL code combination. I got that answer fixed from my previous question here:
Struggling with a dynamic pivot on multiple columns with one being concatenated
I ran into a problem where there are a potential 270 column headings (EDL code combination with "subj", "elig" or "amt" appended) but not every employee will have a value for every column and security settings lock me out of seeing 1 of the 3 payroll groups. This made my report very limited in that when I ran it I could only show on the Crystal Report the data for what columns I had at the time I created the Crystal Report. Well, the user who requested this report has access to payroll group 1 and if even one of those employees had an EDL code that I didn't have in my data when I created the Crystal Reports file then the report wasn't useful to the user. We figured a way for her to get the info she needed by her logging into SQL Server and executing the stored procedure and she did what she needed to do with the data.
Fast forwarding to today I have to create this as a report in SSRS or give detailed instructions on how she can do this in the future if need be since my contract is coming to an end. I'm not familiar with SSRS but I thought maybe that would meet her needs over Crystal Reports. However, I'm running into the same problem. When I add the stored procedure as a dataset (adding it in as text to execute, not clicking the stored procedure radio button) I only see the EDL codes from that particular query not all potential combinations. I need a way to maybe dynamically add columns to the SSRS report, does such a thing exist?