cube-js / cube-js/cube

Getting Data between two date ranges

Open
#8,695 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

I am pretty new and still learning, so this might be something very basic.
I have 4 columns in a table Location, Start_time, End_time and Qty. I want to pass two datetime and want all the records(or sum of qty) that lies in between those two datetime. One way is to use filter or time dimension but this gives only those records whose start_time and end_time lies inside the dynamic date range provided. The input dynamic range might be not completely inside the start_time and end_time.

I have made an sql query but then again it requires the dynamic date range parameter as input. Also, i tried using FILTER_PARAMS, but no use,
Can anyone help me out?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.