Dropdown filter does not populate given string/category variable

Hello. The main issue I've is that my dropdown filter does not populate the values for a string/category variable. Instead, I always get a "search box," and the dropdown does not show the distinct values of the field.

I've gone through past threads about this issue like these without being able to find a solution:

In one of those solutions, it says that I get the "search box" because there are too many values. Hence, I created a new table with just one column containing two distinct values (male and female). Despite this, the search box still pops up when I open the filter, even after I have defined the field as a Category through Metabase Admin Settings.

I have already:

  1. Verified that the column contains consistent values and no nulls.
  2. Changed the Field Type in the Data Model to Category.
  3. Synced and re-scanned the database.
  4. Tried simpler SQL queries, explicitly referencing the field with {{ gender }} or IN ({{ gender }}).

What might I be missing here? Any help would be appreciated!

1 Like

I've been seeing this more and more, not just with SQL variables, but via the query builder and using connected fields. It feels flaky, sometimes it works, sometimes it doesn't. I've also noticed it not working for custom fields so I have to create them in my sql dataset first and then pull them in.