-
Notifications
You must be signed in to change notification settings - Fork 21
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
Feature Request: Allow to Define a Default for {{variables}} #38
Comments
You can set a default value -- if you have a value set for the parameter, when saving the query, then this value will be used as default. Scheduling doesn't work for queries with parameters. Although in theory we can use the default value here. |
Any best practice to set the default value of a date to be today or today -30? These are typical default start and end dates. Use case: I often define date ranges in my queries and if the query remembers the last date entered, then it would it hard to schedule the query to refresh in the future. |
Unfortunately nothing for this :( One thing you can do is to have # of days in as parameter, for example:
So by default you can have 0 or 30 there. But that's an ugly workaround. |
I use that work around for a lot of my charts in my dashboard but then it makes it hard to just go look at a past period like the month of November. Any chance we turn this issue into a feature request? |
Sure, we triage new issues from this tracker every Friday, if you repurpose the title to describe the ask more clearly we'll slot it in to our schedule. |
Done. I renamed the issue. |
Looking back through this conversation, there are actually two separate issues that have been surfaced:
I've opened #43 and #44 to capture these requirements, am closing this issue. |
@rafrombrc Examples: default to "release". Or default to version "51.1". Or default to value greater than "5" bookmarks. |
If I'm understanding you correctly, that's exactly what I'm saying. Right now you can do this with non-scheduled queries, simply by setting the parameter value and then saving the query. You can't do it with scheduled queries, however, and issue #43 captures that feature request. |
Perfect! thanks! |
I use {{variables}} frequently in my queries however the browser often forgets them so I need to keep re-entering them. Or if Re:Dash remembered queries, they are likely no longer valid.
Also, if I schedule the queries to run weekly, I don't know what variables they will use or if the schedules will even work.
User Story:
As a user, I would like to be able to define a default value for my query variables.
For example, if my variable is a date, I would like to define that default is today's date - 30 days.
This brings us up to par with most data tools that have date pickers that default to last 30 days.
The text was updated successfully, but these errors were encountered: