Trying to rename filters in Report Builder - reporting-services

I am working with SSRS 2K5 and I have some questions that I haven't been able to answer via Google related to Report Builder. I have built my report and I am using a Model to generate the report. It is my understanding that Report Builder does not support parameters when the underlying datasource is a model so I have setup a filter that the user is prompted to fill in prior to the report being generated no problem. Here are my two problems:
The filter in question is a date field. If I set my filter to do a BETWEEN (date from to ) there is no option to prompt the user for the values prior to the report being ran. Is there some way to get around this?
If I was able to get the above desired date range effect by placing the date field in the filters area twice: once with a condition of 'Before' and the other with a condition of 'After'. The problem here is how the filters are displayed namely Date and Date 1. Ideally I'd like these to be displayed as Start Date and End Date, respectively. Is there any way to do this?
Please let me know if I need to clarify anything or more information is needed.

Related

SSRS report change date based on subscription

I'm trying to set two different dates for the same SSRS report.
What the report basically does is check a StartDate and EndDate these dates are default to yesterday.
But I have to implement a new subscription which has to look to the beginning of the month.
I've been investigating and I couldn't see any configuration rather than change the default date, but this will break the first subscription.
I'm thinking to add a boolean flag saying "check from the first" and an if inside the SQL query.
but I would like to know if there is any better approach rather than this "hardcoded" and ugly way, using the subscription if possible.
Thanks.
You can use a data-driven subscription to calculate the parameter values for the new subscription you want to create. Write a SQL query that gets the two date values you want to use. Then you can pass these in to override the defaults. You don't even have to edit the report and it will be dynamic.

is it possible to pass values to an access report from both vba and from a form?

I have a set of reports than currently run from a 'Select Report' form. Users select the report name and the start and/or end dates they want to view, and the query underlying the chosen report looks at the controls on the form to filter the report to the selected dates.
We now want to automatically run some of these reports every Monday morning, to send out via email. The start and end dates for the reports will be Date() and Date()+14. I know how to code to run the report and attach it to email, but I can't work out how to programmatically pass dates to the form's underlying query, instead of it looking to the form controls.
I've searched for the answer but can only find answers explaining how to do one or the other, but not if it's possible to do both using the same report.
I've tried to use parameters in the report's underlying query instead, but then I get prompt boxes for the date paramaters when I open the report from the form, even though dates have been selected on the form and are passed through to the report as expected.
I've also tried to pass the dates via openargs instead of looking directly to the form controls, but then I can't work out how to pass those openarg values into the query, only to controls on the report. That means the displayed start and end dates are correct, but the date filtering isn't applying to the report. From stepping through it, the report loads the data before the OnLoad code runs which sets the controls to the openargs values, so they are null at the point the data is filtered.
Any help is much appreciated, I'm a bit stumped on the best approach from here. Thanks.
I have reached a working solution for this, it may not be the most elegant but it allows me to use a single report in the two scenarios of opening automatically for a specific date range, or opening at the users request with user specified dates.
I have amended the reports so their default record source uses Date() and Date()+14 for the report date range.
When the report is opened by a user from the "Report Selection" form, "User" is passed through via OpenArgs. The OnOpen event of the form checks the value of OpenArgs and if it is set to "User", changes both the report's record source and the controls that display the report date range to use the dates entered by the user on the selection form.
#kostasK. thank you for all your input, you helped me get to this solution.

How to select values for parameters in SSRS based on a previous parameter's selection?

I have a SSRS report that I am creating that has 4 dataset parameters:
#PullBy
#Employee
#FromDate
#ToDate
All Data Sources and Datasets have been associated with the report and the basic functionality of the report has been setup and tested.
How the parameters work is the #PullBy has 5 options:
Employee
Supervisor
Manager
VP
Admin
When 1-4 is selected you get a dynamic list generated for the next parameter #Employee.
The user then can (multi) select names from the second list and then set the To and From Dates to generate the report.
This is all working. I have been tasked to add the Admin option to the first parameter and its function when selected is to do the following:
Select All the Employees for the second paramter
Autofill the To and From Dates based on the current month
Is it possible to associate an Expression in SSRS for that parameter value that will then populate the desired selections in the parameters that follow?
I have searched for an answer to this and maybe it is how I am phrasing the question but I have found no answers thus far. Any help is appreciated.
The phrase to search for would be "SSRS cascading parameters". Yes, it's possible to reference previous parameters in the datasets for subsequent parameter values. If you run into a specific issue once you've tried it, post a new question with as many details as possible and we'll take a look.

SSRS report with "Checkbox"-like feature that adds filters to query

I have a SQL database and using SSRS to produce reports. They are both 2012 version. The data is well water levels that are record every hour. Originally I have the report displaying ALL of the data for a user selected well (dropdown list). The user can also select the start and end date (text box) But the well levels don't change that much every hour unless there is a significant rain/flooding event. So I want the user to have the option to choose only the noontime values for each day. Is there a way to have a checkbox that would either 1) change actual query the report is using or 2) include filter that says only display 12:00:00? The parameter options seems to want to include a date and I only want to filter by time.
Thanks
I think the solution for you is to add a parameter to your report to be able to select what information to show with 2 possible values - All / Noon only. Then add a new field / calculated field to your dataset to indicate which ones are noon values. Then use the new parameter to filter the values showed in the report.
Hope it makes sense.

Filter SSRS report to current user

This seems to be a common issue, but I could find no solution which worked.
I have an SSRS report which shows employee Vacation balances.
I want to make a linked report which will only display information for the current user.
The built in field User!UserID, returns the Login of the User, however that Login is generally not used in our DW, so I cannot filter off of it alone.
We have a stored procedure which will convert that login to the matching UserID, which I can then filter the report on.
My issue there is that although I have a secondary dataset which returns the current users EmployeeID, that dataset cannot be used in the filter of my primary data set, nor in any parameters.
Because of the need to identify current user, I do not know of a way to do this within SSMS, but am stuck trying to make it work in SSRS
To clarify the linked report idea, I was planning to have a Boolean where true/false indicated whether to display data for the current user or just return all. The linked report was an effort to not replicate the RDL with this minor change
Any help will be greatly appreciated, this is the sort of issue I am sure I will come across again in the future
I ended up solving this thanks to the mental jumpstart if got from TPhe..
What was needed:
In my TSQL Procedure I created two new variables. One, a Boolean which toggles whether to filter on the person or not. This Boolean is flipped between the SuperUser and Individual report versions. And the second was an EmpID filter (previously we only had a free-text name filter)
If the Boolean is set to view only individual then the report filters to only Current user, which I acquire through a dataset generated by the SP which I mention in the original question.
The key is the Boolean parameter. I titled it viewALL; Defaulted to True for superusers.
I then created the linked report, and altered parameters so that viewAll was set to False, meaning show only the current user information.
I had to add these parameters to the SSRS so that I could Manage the report on the ReportServer and flip the Boolean, and of course they were needed in the SQL for use in my where:
Where ((viewALL = 'False' AND EmployeeID = #CurrentEmployeeID) OR (viewALL = 'True' AND EmployeeName like '%+#EmployeeName+%'))