cube-js / cube-js/cube

Add Support for relative time values for time filters

Open
#1,912 3 comments 5 reactions 0 assignees View on GitHub
backend:server help wanted
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Is your feature request related to a problem? Please describe.**
For `timeDimensions` we are able to specify relative values such as `dateRange: 'Last 7 days'`. It would be ideal if we were able to specify relative values for `time` `filters` as well.

**Describe the solution you'd like**
To be able to define relative values such as `'Last 7 days'` in both `inDateRange` and `notInDateRange`: https://cube.dev/docs/query-format#filters-operators-in-date-range and https://cube.dev/docs/query-format#filters-operators-not-in-date-range

**Additional context**
Previous relevant discussion: https://github.com/cube-js/cube.js/issues/1737

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.