I'm trying to filter some dataverse tables using only text fields. These records contain names and birthdays stored as text. Each of month, day, and year are separate columns. The searches users need to do might not have all of the pieces of the date or names. I don't have a problem with the name fields since I'm only using the "in" operator. But when attempting to filter on each date field I end up getting zero results on test data I know exists. My goal is to avoid using a big If statement to skip the date fields that the user hasn't selected. What is wrong with my formula? all of the variables are being set with a search button.
Filter('Datasource',
(varLastName in 'Last Name' Or IsBlank(varLastName)),
(varFirstName in 'First Name' Or IsBlank(varFirstName)),
(varBirthMonth = 'BirthMonth' Or IsBlank(varBirthMonth)),
(varBirthDay = 'BirthDay' Or IsBlank(varBirthDay)),
(varBirthYear='BirthYear' Or IsBlank(varBirthYear))
)