Power BI Paginated Report - monthly parameter - reporting-services

I require your guidance for my needs.
I want to create a parameter based on month that will help me filter the data report based on the selected month parameter. Example if the parameter I choose is January then I want to put the filter on my datasets only the January.
Currently I create default parameter by get the first date and last date of the current month and previous month. I want to upgrade these parameter with just select the month.
Hope you all can get what I need.
Thank you in advance.

You have two options:
1- Create the parameter and enter the available values as a list manually
2- If you have a date table in your dataset, you can create a dataset that queries this table and returns the list of the months. You would then use this query as a source for your parameter

Related

Query Parameter in Paginated Report

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

Passing multiple values to subreport parameter - SSRS

I have a report that has 4 parameters:
Year - accepts a single value for a year - ex: 2020
Carrier Group - allows the user to select a single carrier grouping
Segment - allows the end user to select one or multiple business segments
Loss Cause - allows the end user to select one or multiple loss causes
And when I execute this report:
The report generates as expected - and I have the SSRS report set up so it creates a new tab in Excel when exported to separate the monthly totals vs the cumulative totals.
But the end users would like to be able to execute this report for multiple years to compare - so I have created a parent or main report - then I created a tablix and added the sub-report to be called - and created a row group based on the Year(s) selected.
My subreport parameters are as follows:
What I am ultimately hoping to accomplish is to pass in a single year plus the carrier group, segments and loss causes that were selected - and run the subreport for each of the years the user may select.
For example, if the user selects 2016, 2017, 2018 - the sub-report would need to be run 3 times to generate the totals for each of those years using the same parameters for carrier group, segment and loss cause.
I'm not sure what is happening but with the Year parameter as it: =Parameters!Year.Value(0) - the report looks like it keeps generating one year over and over:
I also tried using =JOIN(Parameters!Year.Value,",") but that did not seem to help either.
Anyone have experience on how to solve this type of issue? Thanks,
The easiest way to do this is to add a dataset to your main report that returns one row per year.
If you have a dates table or similar in your database then you could do something like
SELECT DISTINCT Year(myDateColumn) as [myYear]
FROM myDatesTable
WHERE Year(myDateColumn) IN (#Year)
If you don't have a date table then (other than suggesting you add one...) you could create one on the fly with something like
SELECT * FROM (
SELECT top 20
ROW_NUMBER() OVER(ORDER BY name) + 2000 as [myYear]
FROM sysobjects) o
WHERE myYear IN (#Year)
(adjust the top 20 and +2000 as required to get a range of years that covers all your potential data)
Now set the dataset property of the tablix in your main report to point to this new dataset.
In your subreport object's parameters, set the value for the Year parameter to the [myYear] field in your dataset by selecting it from the drop down or using =Fields!myYear.Value as the expression.
Now that the tablix is bound to the dataset, it will create one row for each record returned from the "dates" dataset, each row will have a different year which is passed to the subreport, so the subreport is called once for each row/year.

SSRS Chart on newest date for each row group

I have an SSRS report that contains a group where the row DataSet contains a date-time column in addition to other value columns. I want to place a pie chart at the top of my report that indicates totals from the newest row based on the date-time column within each group. How can I do this?
Here is a simple snippet of what the report looks like. The pie chart would basically total up all of the Outcomes for the newest "Started DT" row for each "Test Case" group. So, in the example report below, the chart would have a total of 1 "Passed" and 2 "Failed" on the pie chart.
I'm really having a hard time figuring out how to do this. I've tried adding a variable to the group that contains the Outcome from the first row, thinking that I could reference the total of the variables in my chart. Problem is..., SSRS won't let me put an aggregate expression on a Group variable.
I came up with a workaround. I added another dataset to my report that calls the same stored procedure, but with different parameters that restrict the number of days being reported to the newest date-time. This solution only worked for my particular situation because the stored procedure had a param that would allow me to get the data that I want.

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.

Seperate SSRS report weekly between a date range

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.