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
kido117
New Member

Datetime Filtered to DateTime.LocalNow() shows 'This Table is empty' in PQE

I replaced the null values in DateTime column with the M formula in PQE:

= Table.ReplaceValue(#"Replaced Value",null,DateTime.LocalNow(),Replacer.ReplaceValue,{"Resolution time"})


When I filtered the column to todays date as shows in formula:
= Table.SelectRows(#"Replaced Value1", each ([Resolution time] = #datetime(2024, 5, 16, 19, 3, 31.0258814)))

I get "This Table is empty". The filtering works for other datetime values though.

1 REPLY 1
HotChilli
Super User
Super User

Did you write this out or did you use the interface to generate the value of the datetime?

I think the obvious conclusion is that you don't have any values in the table that equal that value.

-

There is a handy function Date.IsInCurrentDay which you could use.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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