Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
common763
Helper III
Helper III

SQL Server Stored Procedure with Data Parameters (Enter Date Parameters before Query Refresh)

I have a stored procedure that asks for dates before running the query.  Is there a way to have a query run inside PowerBI and before it actually runs asks for specific date parameters?  Issue is the data size.  We dont want them running a large query and the date will be changing daily.  Basically want to see if BI can have parameters like SSRS before a query runs.  Any info would be helpful.  

4 REPLIES 4
lbendlin
Super User
Super User

Yes, you can parameterize your query in a lot of flexible ways.  However, very soon you will hit a wall, namely the Formula:Firewall. Best read up on privacy levels and combining queries from different sources (which is basically what you'll be doing).

So let me ask a different way because maybe there is an alternate approach.  If I have a dataset from SQL, where the end user could want any random start end date and the actual query or stored procedure is too large to refresh everytime it is run (without a smaller date range), what is a good easy solution that would somehow replicate what SSRS does when a report opens and the end-user selects two dates, then it goes out and gets the data? 

That would be called a Direct Query connection.

This makes sense and is simple so appreciate it.  I will take this approach and see how it works for me.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.