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 11:16:47 UTC

[GitHub] [superset] moathOSA opened a new issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

moathOSA opened a new issue #19278:
URL: https://github.com/apache/superset/issues/19278


   is there is away to cast a filter option from 0 , 1 to true or false ? 


-- 
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


[GitHub] [superset] zhaoyongjie edited a comment on issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [superset] villebro closed issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

Posted by GitBox <gi...@apache.org>.
villebro closed issue #19278:
URL: https://github.com/apache/superset/issues/19278


   


-- 
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


[GitHub] [superset] zhaoyongjie edited a comment on issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

Posted by GitBox <gi...@apache.org>.
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, and then the new derived column as filter.
   ```
   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


[GitHub] [superset] zhaoyongjie commented on issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

Posted by GitBox <gi...@apache.org>.
zhaoyongjie commented 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 in the Dataset configuration.
   ```
   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


[GitHub] [superset] villebro commented on issue #19278: How to make 0 , 1 opotion in a filters shown as "True" , "False" instead ?

Posted by GitBox <gi...@apache.org>.
villebro commented on issue #19278:
URL: https://github.com/apache/superset/issues/19278#issuecomment-1073842463


   @moathOSA please refrain from cross-posting (#19280) questions here


-- 
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