Conditional formatting on enum field

Hello,
Is there a way to use an enum field for conditional formatting in a table settings?
Thanks

Hi @Noosymer
Post "Diagnostic Info" from Admin > Troubleshooting.
Yes, it should just work like other types. But perhaps you're doing remapping too?

Hi @flamber

Here it is:

{
  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.12+7",
    "java.vendor": "Eclipse Foundation",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.12",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.12+7",
    "os.name": "Linux",
    "os.version": "4.14.253-ovh-vps-grsec-zfs-classid",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "postgres"
    ],
    "hosting-env": "unknown",
    "application-database": "h2",
    "application-database-details": {
      "database": {
        "name": "H2",
        "version": "1.4.197 (2018-03-18)"
      },
      "jdbc-driver": {
        "name": "H2 JDBC Driver",
        "version": "1.4.197 (2018-03-18)"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2021-10-21",
      "tag": "v0.41.1",
      "branch": "release-x.41.x",
      "hash": "76aa4a5"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

@flamber

In Admin > Data Model > db name


In Table > Settings > Conditional Formatting

56

The State field is not present


In Dashboard > Edit > Edit filter

The State field is not available as well

@Noosymer Time to upgrade immediately. https://github.com/metabase/metabase/releases/latest

It's basically the same problem is with booleans on Postgres for some reason:
https://github.com/metabase/metabase/issues/14939 - upvote by clicking :+1: on the first post

The workaround is similar, but creating a Custom Column concat([your_field], "") and use conditional formatting that column.

Hi @flamber

I upgraded to the latest version.

Thanks for the workaround. Waiting for the fix...