Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 TIme Column Filter for Superset Apache #13115

Closed
binthere24 opened this issue Feb 14, 2021 · 1 comment
Closed

2 TIme Column Filter for Superset Apache #13115

binthere24 opened this issue Feb 14, 2021 · 1 comment
Labels
question & help wanted Use Github discussions instead

Comments

@binthere24
Copy link

Is there are way to create a widget with Superset Apache where the SQL Query is based on 2 time columns?

Example Query:

"SELECT
title
,pipeline_id
,alc_production_status
,campaign_start_date
,campaign_end_date
,website_name
,performance_status_name
,sum(spend) AS spend
FROM superset_native_dashboard.v_content_list_with_facebook_ads_v1
WHERE ((campaign_start_date BETWEEN date '2020-12-27' AND date '2020-12-28') OR
(campaign_end_date BETWEEN date '2020-12-27' AND date '2020-12-28'))
GROUP BY
title
,pipeline_id
,alc_production_status
,campaign_start_date
,campaign_end_date
,website_name
,performance_status_name

@binthere24 binthere24 added the #bug Bug report label Feb 14, 2021
@junlincc junlincc added question & help wanted Use Github discussions instead and removed #bug Bug report labels Feb 15, 2021
@amitmiran137
Copy link
Member

You can just write custom SQL query that wraps that logic of a single time range bring pass to different where clause parts
And saved it as a virtual dataset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question & help wanted Use Github discussions instead
Projects
None yet
Development

No branches or pull requests

3 participants