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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
BugmanJ
Resolver I
Resolver I

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors