You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Jayen16 (via GitHub)" <gi...@apache.org> on 2025/07/09 02:44:32 UTC
Re: [I] How to use custom SQL in metric field in chart? [superset]
Jayen16 commented on issue #8727:
URL: https://github.com/apache/superset/issues/8727#issuecomment-3050923862
> How to display columns with alias names in raw records and also how to write a custom SQL query. If I write like a normal SQL query(select customer_id as `cid`), it is showing like Expected text or file-like object, got <class 'dict'>. If I try to edit the label, its getting saved with original name. <img alt="Screenshot 2022-11-18 at 3 44 39 PM" width="1674" src="https://user-images.githubusercontent.com/109591061/202678363-a415e610-ee0e-4e03-a73c-e46758659bc5.png">
try use case statement
--
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