cancel
Showing results for 
Search instead for 
Did you mean: 
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
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors
Top Kudoed Authors