Parsing Enum values to Strings in Dashboard

Comments

1 comment

  • Avatar
    Mario Sanchez

    Eric,
    Since it's a small set, a simple way to do it is with a few IF statements:
    ...
    | if(role = 1, "Admin", role) as role
    | if(role = 2, "Poweruser", role) as role
    | if(role = 3, "Analyst", role) as role ....
    ....
    | count by role

    0
    Comment actions Permalink

Please sign in to leave a comment.