Hi,
I am trying to use switch cases in canvas kibana (7.14) but it's not working.
I tried to use the demo data with the following code:
demodata
| mapColumn "project_map"
fn=${getCell "project" |
switch
{case if={compare eq to="kibana"} then="kibana"}
{case if={compare eq to="elasticsearch"} then="elasticsearch"}
{case if={compare eq to="beats"} then="beats"}
default="other"
}
| table
| render
and ended up with this result:
It appears that after the first case, nothing else works. I really need to map a column in the same way as shown here, so if there's an alternative I would really appreciate if you could share.
Thanks!