Can someone please help me on this.
I have a stored procedure with StartDate and EndDate parameters and they are being used to run the SSRS report. In SSRs, user has the ability to select the StartDate and EndDate and report is retrieved. However, I want to have same slicer for date available in Power BI after running the Stored Procedure. But I am stuck, don't know how to bring the date to the slicer so user can select the date range from the slicer. Dataset do not contain date, just FYI.
Thank you for your assistance.
Prakash ThapaPosted Dec 6, 2023, 4:11 PM
Thank you very much for your detail explanations.
Since there is no proper date filed in my stored procedure, it looks like I need to modify the sp first to have a proper date field. In that case, I can use this date field to join with a date table. Some consultant expert built this complex query and I can't even understand it, due to its complexcity. That is the problem right now.
However, is there a way without a date field in my dataset to pass the StartDate and EndDate parameters in power bi ? This the stored procedure sample;
Exec SSRS_Project_v2 @StartDate = '2016-1-1', @EndDate = '2023-12-5'
Thanks again for your assistance, Appreciated.
PT
Mohamed Azarudeen ZPosted Dec 1, 2023, 5:02 PM
First, make sure that the dates returned by your stored procedure are loaded into Power BI. You might need to modify your stored procedure to include a date range or extract the dates you need.
Open the Power Query Editor and check if your date range is loaded into your data model.
Data Model:
Create a Date Table:
Relationships:
Slicer:
Use Slicer in Report:
Dynamic Date Range: