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
BugmanJ
Helper V
Helper V

Parameter Not Binding in DirectM

Hello,

Using query:

 

 

let

filterquery = "SELECT [RECORD_MODIFIED],[CUSTOMER]FROM [SHOP].[CAKE] where [SHOP].[CAKE].[RECORD_MODIFIED]

> CAST('"&DateTime.ToText(StartD,"yyyy-MM-dd hh:mm:ss")&"' as DateTime)",

Source = Sql.Database("Server", "Datebase", 
    
[Query=filterquery])
in
Source

 

 

StartD = 25/11/2022 00:00:01

This works okay

However, if i introduce a table like this:

 

Starting
01/12/2022 00:00:00
02/12/2022 00:00:00
03/12/2022 00:00:00
04/12/2022 00:00:00
05/12/2022 00:00:00

 


And Bind this to the Parameter, it does not change the query. Why? What needs to be corrected?

Thank you

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

I did same on my end and confirmed it worked as expected. Did you set your new Staring column to DateTime type?

 

Pat

 

Microsoft Employee

Hello,

Yes everything is set correctly but still not binding to Query

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.

Top Solution Authors