We have been using Metabase for some time now and are facing an issue we have not been able to resolve on our own.
We frequently write complex native MongoDB queries. Our data includes date fields (start and end), and in our dashboards we have configured start and end date filters. The query logic returns all records that overlap with the selected start and end filter values.
The challenge we are experiencing relates to setting a default value for these filters. Specifically, we would like the default date range to be the last two months.
- When using a βDateβ filter type, there does not appear to be an option to set the default value to β2 months ago.β
- When using a field filter instead, it gets converted into a full query rather than passing only the date value. This creates a problem because we need to reference the filter value elsewhere within our native query.
Is there a good solution/approach for the problem I am facing?
Thanks!