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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ilcaa722
Frequent Visitor

Test if Date is less than Jan 1

i have an embedded Table and want to check if any of the values in a Date column is below a certain date...

 

in the formula in screenshot i get error..." we cannot apply operator < to types List and Number", what would be the correct syntax?

 

thanks

= Table.AddColumn(Source, "Called NovDec", each List.AnyTrue( { [MD_call_Data][Date] < 1/1/2023 } ) )

ilcaa722_0-1678795187624.png

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Use this

= Table.AddColumn(Source, "Called NovDec", each List.AnyTrue( List.Transform([MD_call_Data][Date], each _ < #date(2023,1,1))))

View solution in original post

1 REPLY 1
Vijay_A_Verma
Super User
Super User

Use this

= Table.AddColumn(Source, "Called NovDec", each List.AnyTrue( List.Transform([MD_call_Data][Date], each _ < #date(2023,1,1))))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors