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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
KRZYSZTOFB
Frequent Visitor

DatePicker for SQL Query

Hello, 

It's there any possibility to have date picker to import data from SQL server?

In my file I'm using two parameters with date and time in my SQL query.

 

 

Best regards

Krzysztof

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @KRZYSZTOFB ,

 

According to your description, when the date parameter is used in conjunction with a PowerBI query, an error message of the following type appears.

We cannot apply operator & to types Text and Date.

Just like below:

vhenrykmstf_0-1658134832840.png

The best way is to set the dynamic start date and end date for the date table in Power Query after successfully connecting to the sql data source, the detailed steps can be found in the following blog.

Using A Dynamic StartDate & EndDate For Power BI Query Date Tables (enterprisedna.co)


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@KRZYSZTOFB , No , It has table from Power bi Table.

 

Check if the Dynamic M parameter can help https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello,

I have created file according to link You have shared.

Filtering works properly but since i've bind my table to parameter, I'm not able to use calendar on slicer. 

I have only two options visible: List and Dropdown:

KRZYSZTOFB_0-1658235838140.pngKRZYSZTOFB_1-1658235869929.png

Field is slected properly - as Date.

Everything was fine before binding.

Do you have idea how to fix this?

 

Best regards

K.B

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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