Attached image shows the graph in dashboard which has two graph overlapped.
I want to put a drop down option to it so that I can select one at a time.
Sometimes I have more than 10 samples or graph in one so I would like to go with this approach or something similar option.
I tried the default option we have at the bottom of the graph, but if I have n number of graphs in one that wont help me. I couldn't understand how to get this done.
Can anyone help me with this.
I think you are describing the templating function. Take a look at this link: link
Like you can see in the screenshot of one of my dashboards. With the help of templating I can select between different query's to show in the graph:
In your case the query would look something like:
SELECT count("responsecode") FROM "samples" WHERE "label" = /^$YOUR_TEMPLATE_NAME$/ AND ...
Related
Is there a way to display different sheets by clicking/selecting values/options from one particular filter?
for example, if I have this filter:
and I need to display a sheet named Departments when I select Commercial from the filter shown in the PtrScn.
However, When I click/select any other options like HR, Information ...etc, I want it to display the associated sheet with the filter "Filter by Sector"
Any hints would be highly appreciated!
NOTE: I use tableau 2019.1 and it does not show "Change Parameter" that might be needed to approach this as I noticed when I have been researching for two days now!
You should use a container (say vertical) where you wanna put your N worksheets one on top of the other one without changing vertical spacing: just let Tableau do its stuff!
Be sure to remove the worksheet titles.
Once you're done, you need to create a parameter in order to handle all the N possible choices, and according to that you need to create N Calculated fields with a condition like this one:
if [Param] = 'Profit' then 'ok' else 'ko' end
Each calculated field will be used as a condition (select just ok values) in your filter selection.
Since the parameter can accept just one value a time, you will have just one of your N worksheet displaying data.
And this is the trick based on the vertical conatiner: if you hide worksheet titles, you will see "something" just for the selected worksheet and Tableau automatically will handle all the vertical space in the container.
The result will look like the following:
Adding to Fabio's great answer, these resources about collapsing containers may be useful:
Sheet swapping using collapsing containers
Automatically resize items in a Tableau container (or make disappear in your case)
I need to use Grafana for simple db queries to show some basic ERP data.
My MS SQL query is very simple:
select "Production Line", "Pallets" from vLiveProduction order by Plant, "Production Line"
The data are pretty straight forward and they display in a table.
I cant make them display in a graph or bar or any plugin i tried to.
I must be doing something fundamentally wrong here but i cant see what. Any help?
I AM choosing series in graph but nothing changes. I cant find a way to tell Grafana which column is the series and which the value… Tried by naming my columns metric and value but still no luck.
I would use the bar guage panel in Grafana > 6.2.
You can change the config so that Display = All Values. which i think will give you what you want! Plus the Retro LCD setting under Mode looks cool :)
Tom
I'm using Grafana with Prometheus and I'd like to build a query that depends on the selected period of time selected in the upper right corner of the screen.
Is there any variable (or something like that) to use in the query field?
In other words, If I select 24hs I'd like to use that data in the query.
There are two ways that I know:
You can use the $__interval variable like this:
increase(http_requests_total[$__interval])
There is a drawback that the $__interval variable's value is adjusted by resolution of the graph, but this may also be helpful in some situations.
This approach should fit your case better:
Go to Dashboard's Templating settings, create new variable with the type of Interval. Enable "Auto Option", adjust "Step count" to be equal 1. Then ensure that the "auto" is selected in corresponding drop-down list at the top of the dashboard.
Let's assume you name it timeRange, then the query will look like this:
increase(http_requests_total[$timeRange])
This variable will not be adjusted by graph resolution and if you select "Last 10 hours" its value will be 10h.
If you are looking at using prometheus as data source, $__range supports your dashboard time is great.
increase(gin_total_requests[$__range])
Why create your variable when you can use inbuilt Global variable.
I have added links to documentations to back up my answer
Grafana 5.3+
count_over_time({job="gerrit-sshd"}[$__interval])
It works for me and what's more, you should set Max data point as 1 ,in query option.
Then the $__interval is the same Time-Range from the Panel on Grafana top right corner.
Is it possible to display date parameter in tableau as a calendar?
Thanks
It looks like you can.
It looks like there is a bit of a process to doing this:
Drop the Date Dimension into the Filter, select "Range of dates", and
hit "Next>".
Then select "Load Domain", and select Apply/OK. (I left
the, "Show:" as "All Values in Database".)
Then add the Quick Filter.
This should achieve what you are looking for. Note that that post linked the same link above, but it did not direct you to the correct page. I had to use a web archive to get it to work.
I've got a workbook I'm building using public data https://public.tableau.com/profile/alee4645#!/vizhome/JSAClaimantsWardtimeseries/Dashboard1
The basics are working as I want, you see the map, you click on one of the coloured areas and a time series chart appears below the map showing the change over time for that area.
I want to add a couple of comparisons to this data, for example I want the time series chart to show a line for the whole coloured area (Somerset) so people can see how one part of it compares to the overall average.
I have the figures as separate rows in the data but of course when the action filter is triggered they get filtered out along with everything else.
If I edit the action filter in the filter shelf for sheet 2, it has the condition tab and I was hoping I could add [ward code] = "E10000027" (the comparison data I want to use) to the formula box so it would also keep the relevant rows of data, but that stops the chart working altogether.
I could achieve it by getting people to choose an area from a parameter drop down but I'd rather let them click on the map so they don't need to know the name of the area they are interested in.
Can this be done?