Is there an option that allows dashboard users to select dynamic range to view data on their dashboard? I checked the parameters option and filter option, but it is not exactly that. We need to allow our nontechnical dashboard users to set up date ranges to view their data.
Thank you so much! I tried to do it but am getting an error.
Since I load my data source from the google sheet, I am creating a new, 2nd query and using parameters in this query (while using 1st query as a data source. This 1s query is simple, it loads the table from google sheets in its entirety, no parameters).
So, I selected “My query results” as a data source and trying to create a new query for dynamic data range:
SELECT Submission ID, User ID, Submission Date and Time, Tides, Animal
FROM query_2
WHERE
Submission Date and Time >= ' {{ Date.start }}'
AND query_2.Submission Date and Time <= ' {{ Date1.end }}'
I selected Date and Date 1 as parameters, Date and Time with seconds.
But I am getting the following error:
Error running query: missing values for Date, Date1 parameters.
My data format in that Submission Date and Time column is like this: 2/14/2019 18:15:00
Is there an option to select all columns from the query?
Also when the initial table in google sheet updates, how will update work in this situation? The initial query will update and then this query will update too?
For my user dashboard, I will have to base my dashboard and all visualizations on this second query if I want users to be able to select dynamic data range?
Finally, if I want to create several dashboards for several users, but do not want them to make a selection of user or see other users dashboard, using user_id parameter will not work since it is reflected on a dashboard and lets users to select a user and to see dashboards of other users? I have user_id column in my table in Google Sheets and it is numerical, like 3 or 45 etc.
Sorry for asking all these stupid questions, I am newbie and just trying to learn more about redash. Thank you in advance.
You have a typo in your query. One of your parameters is called Date and the other is Date1. For a date range parameter you will have a pair called Date.start and Date.end. Also, delete the extra space in front of your parameters. It will cause issues.
Yes. QRDS uses SQLite.
SELECT * FROM query_2
The query to Google Sheets refreshes every time you execute your QRDS query. That is unless you replace query_2 with cached_query_2 in your query text.
Correct.
You will need to create separate queries with a hard coded filter in each. Redash is built for internal teams. So if a user can run a parameterized query, they can do so with any allowable parameter value.
And here is a part of query_2, to show that there is column called “submission Date and Time”. Maybe the problem is in date format in query_2? But it looks absolutely normal there.
Ok, I apologize for being completely retarded, I am a newbie and it has been a bit hard to navigate. So I selected Date and Type “Date and Time Range” in settings and selected the range in widget. Now I get Date syntax error.
My date/time is in the following format in the csv table: MM/DD/YY HR: MIN
Also, I am a bit confused about that widget. It allows me to select the range, let’s say the past 12 months. But will the user be able to select the range on their dashboard, let’s say October 1 October 30 , 2019? Because I want to let the user to select date range on their dashboard as well.
hi @cetalingua@jesse i have query db clickhouse : SELECT *
FROM tableWHERE datepaid >= {{ lol.start }} and datepaid <= {{ lol.end }}
GROUP BY product_name