how to mix different argument types in looker custom field

I am new to the looker. Trying to write a custom field and getting this error. Any suggestions? 
 

9abf1830-ca5b-45cb-a63d-1323224c2e07.png
Solved Solved
0 6 684
1 ACCEPTED SOLUTION

Yes, a year is an integer, date is a date, so you can’t compare it. Try 

extract_years(${your_field}) = 2021

View solution in original post

6 REPLIES 6
Top Labels in this Space