You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/03/21 12:00:37 UTC
[GitHub] [superset] zhaoyongjie edited a comment on issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?
zhaoyongjie edited a comment on issue #19278:
URL: https://github.com/apache/superset/issues/19278#issuecomment-1073808813
> is there is away to cast a filter option from 0 , 1 to true or false ?
Hey there, the `calculated column` in the Dataset configuration can do the case.
```
case
when col = 0 then false
when col = 1 then true
else NULL
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org