From notifications-return-51328-archive-asf-public=cust-asf.ponee.io@superset.apache.org Wed Sep 16 12:20:54 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 57F0C1804BB for ; Wed, 16 Sep 2020 14:20:54 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 91F39427AA for ; Wed, 16 Sep 2020 12:20:53 +0000 (UTC) Received: (qmail 73751 invoked by uid 500); 16 Sep 2020 12:20:53 -0000 Mailing-List: contact notifications-help@superset.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.apache.org Delivered-To: mailing list notifications@superset.apache.org Received: (qmail 73742 invoked by uid 99); 16 Sep 2020 12:20:53 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2020 12:20:53 +0000 From: =?utf-8?q?GitBox?= To: notifications@superset.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bincubator-superset=5D_KoomeKiriinya_commented_on_i?= =?utf-8?q?ssue_=237851=3A_Writing_a_CASE_statement_in_Custom_SQL_Lab_with_F?= =?utf-8?q?ilter_Box?= Message-ID: <160025885323.32230.4170229584577245552.asfpy@gitbox.apache.org> Date: Wed, 16 Sep 2020 12:20:53 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: 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