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 2020/09/16 12:20:53 UTC

[GitHub] [incubator-superset] KoomeKiriinya commented on issue #7851: Writing a CASE statement in Custom SQL Lab with Filter Box

KoomeKiriinya commented on issue #7851:
URL: https://github.com/apache/incubator-superset/issues/7851#issuecomment-693368587


   Hey How do I go about a custom metric that requires me to AVF when a certain selection is chosen on the filter and SUM otherwise
   e.g CASE WHEN columnA = "Price" THEN SUM(columnA) ELSE AVG(columnA) 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.

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