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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
common763
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.