SSRS 2016 - subscription subject from variable - sql-server

I need to pass a current date variable dynamically to SSRS subscription subject. Is it possible when using standard subscription ?
I know it may be obtained using data-driven subscription but then I get report sent as many times as number of rows in the report, and I only need the report to be sent once.
I just need to have something like "Report XXX, #GETDATE()" in subject.
Is it possible to also set dynamic report name in Excel file sent using the SSRS subscription ?

You can obtain the Execution Time of the report using #ExecutionTime, see this link. However, you want to make sure the execution time represents when the report was rendered or when the subscription processed the report, I am sure it is the former and it could be problematic for snapshot/cached reports. For non-cached reports this should be the current date outside of the edge case of crossing midnight server time.

Related

how to create SSRS report subscription with two different parameter selection data for the same report?

I have a new requirement with SSRS reporting. i have an SQL query with two parameters which are start and end date. the requirement is i want to create subscription for the report to be sent to particular email on weekly basis. the report should be sent as an excel file with two worksheets. first sheet should have the data from the parameter value selected as 'Startdate=getdate-7 and enddate=getdate()' and the second sheet should have the data from the parameter value selected as 'Startdate=oct-18-2019 and endate=getdate()'. Could anyone help me how to achieve this? i know we can create two separate reports and send two different subscriptions for this. but not sure if we can acheive this sending this in one suscription. or you can also help me if this can be sent in one email subscription but with two different excel sheets.
You can do 1 report with 2 Data-Driven Subscriptions.
Click Here for documentation
Check Here for a good article with a clear examples

Two date parameters while connecting Google Data Studio with BigQuery

As I read in this link "Report viewers can't modify data source parameters directly. However, if you've enabled date parameters for a BigQuery data source, and your report includes a date range control, viewers can use that control to request different starting and ending dates from the BigQuery data."
I'm facing a situation where I need to filter two periods at the same time and over the same data source:
Period where users installed my app.
Period where users made actions.
For now, Data Studio permits only one date parameter in customized queries for BigQuery (DS_START_DATE, DS_END_DATE). But what if I need an additional date parameter? Is there a solution to this need?
Include all the data from BigQuery to Data Studio first, then set custom date range for the specific charts/tables.

How exactly do Amazon MWS Order Reports work

I used MWS scratchpad to schedule Order Reports with the _15_MINUTES_ schedule, I thought that every 15 minutes, a new order report will be created and I can download it, however, only 1 report has been created (I changed the IDS for public display)
<ReportInfo>
<ReportType>_GET_ORDERS_DATA_</ReportType>
<Acknowledged>false</Acknowledged>
<ReportId>2456744422183913</ReportId>
<ReportRequestId>12543213592</ReportRequestId>
<AvailableDate>2019-10-04T09:20:24+00:00</AvailableDate>
</ReportInfo>
So how do I get new orders, is it that every 15 minutes, the same report will be updated with the new orders? will I never ever have to schedule order reports after this? I'm not clear on how it works.
I'm using the python3 mws API for my work if it helps.
Any help would be appreciated.
Have a look at this: What you should know about the Amazon MWS Reports API section, if you haven't already.
A new report will be generated at the time interval you specified. It will be a completely new report with a different id. You can query GetReportRequestList for the status and then when the report is ready, call GetReport with the ReportID from the previous step.
Your schedule should be indefinite. Check to make sure your report is schedulable and see if there are restrictions on how often you can request it.

Can autorefresh function still work after I publish (export) a report from SQL server report builder?

I'm learning how to use Microsoft SQL server report builder 3.0. I know there is a function in the report called autorefresh. It works when I simply run the report within the report builder. I'm thinking can it still be refreshed after the report is exported.
Another question may related to this autorefresh functionality. When I add dataset into report builder, does it actually load the data into report builder or set up a link between report builder and database? If it sets up a link does that mean when I change something in database, it will reflect on my report builder after I refresh it.
All I want to do is keep the report up to date even after I export it.
Really keen to know the answer.
Thanks in advance.
Make properties visible(View Tab > Check Box View)
Then navigate to report properties(Click on blue space around page). It should say Report in bold at the top of properties.
Expand the Other list and AutoRefresh is the first one.
It's by default set to 0. It's measured in seconds so changing it to 30 will make your report refresh every 30 seconds.
Just so you know, you'll find that even though reportBuilder is the new SSRS(BIDS), it's still very, very similar. So don't feel like you need to always only look at Report Builder only. SSRS tutorials and other facts will be either identical or similar enough to figure it out.

Deploying reports from multiple parameters automatically?

I'm quite new to SSRS. I have a set of reports which obtain parameters from a query (defined as dataset in BIDS). These parameters include a machine identity, starting date and ending date. While each is specific to each machine, SSRS will put all parameters into separate drop-down lists which the user must then select the correct values from and run the report.
The problem, as you may imagine, is that there is somewhat of a wide margin for error here on the target user's part. The user is able to select incorrect starting and ending dates from this list for any machine. These reports should ideally run automatically on a schedule every Monday morning, but I'm having difficulty seeing how this is accomplished, as SSRS must essentially iterate through the machine ID list and use the appropriate starting and ending dates for each report. All other reports in this instance depend on these parameters which are gleaned from this query.
Does anyone know how to automatically run multiple SSRS reports based on a list of parameters? I sounds like some sort of coding logic is necessary here but I don't know how to use it in this case (I would prefer to have no user interaction, if possible).
Have you looked at Data Drive Subscriptions?
http://msdn.microsoft.com/en-us/library/ms169972.aspx

Resources