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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
giuliapiazza94
Helper IV
Helper IV

Filter date with ODBC database

Hi guys,

I need to filter the rows that I want to import from ODBC database with a range of dates (for example 01/01/2019 - 31/12/2021)

I have created the parameters but I don't know how connect the sales table with the parameters like when I use sql server.

 

Have you a idea?

thank you all

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @giuliapiazza94 

 

You can connect to the database first and get preview data in Power Query Editor. Create two query parameters of date type, e.g. startDate and endDate. Then click the down arrow on the date column header to expand the menu and select Date Filters > Between. Select two parameters for the range start date and end date.

072101.jpg

 

If you want to use native database query to query and filter the data, you can expand Advanced options on the connection window, enter query into the SQL statement (optional) box. You can input two definite dates to filter data first. Then in Power Query Editor, use query parameters to replace the date values in original SQL statement.

072102.jpg

 

Both operations are similar to that when you use SQL Server.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

 

 

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @giuliapiazza94 

 

You can connect to the database first and get preview data in Power Query Editor. Create two query parameters of date type, e.g. startDate and endDate. Then click the down arrow on the date column header to expand the menu and select Date Filters > Between. Select two parameters for the range start date and end date.

072101.jpg

 

If you want to use native database query to query and filter the data, you can expand Advanced options on the connection window, enter query into the SQL statement (optional) box. You can input two definite dates to filter data first. Then in Power Query Editor, use query parameters to replace the date values in original SQL statement.

072102.jpg

 

Both operations are similar to that when you use SQL Server.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.