I want to create a Dashboard control dropdown where the user can select from Hour, Day or Week.
That selection should then be used to filter the data to be data from the last Hour, Day or Month.
Let's say the Control is called TimePeriod, then the WHERE clause would say something like
WHERE resolution_at > {TimePeriod}
In reality I want to filter to the previous Calendar month - the SQL would be slightly more complex but the idea is the same. I could not get Atlassian Analytics to use the Control to accept the variable name as I tried to above.
Is what I am trying to do even possible? Thanks in advance.