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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Kohrinn
Helper I
Helper I

Date parameters in SQL query

Hi,

I have a large table in SQL with data that are growing pretty fast. I don't want to import the whole thing to Power BI, just to choose from slicers the start and end dates and get only the data that I need based on slicers. How do I do that?

 

Thanks!

4 REPLIES 4
Kohrinn
Helper I
Helper I

My issue now is how to bind my parameter to the selected date on slicer.

Kohrinn
Helper I
Helper I

I've created two parameters and used them in Direct Query :

 

Kohrinn_0-1707995935294.png

 

How to connect the parameters to the values I have in slicers?

As you know you can do it like you want. You need to define the dates before, because the data will be loaded first.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




_AAndrade
Super User
Super User

If you are using import mode please check this post: https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-Date-Parameter-for-Import-Queries/m-p/...

Other option is using direct query. With direct query the data remains on your server and the PBI send the query request data when you filter the visual





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.