Charts drill down as 'year to months for different cities' in Tableau - tableau-api

I'm working on Tableau for rainfall data.
I have a cumulative rainfall data for a year (and the months respectively) of different cities.
And I prepared a tableau barchart for the annual rainfall data.
So, if I hover/click my cursor on any of the bar then a line chart which carries the months of that particular city need to be visualized.
Please suggest.

You have to using compulsory Action Filter.
choose dashboard menu -> Action->add action.

Create another worksheet with the line chart month view you would like to see.
Then go to Worksheet>Actions>
Add Action > Filter and Select how you want it to run (hover/select)
Select your new worksheet as the target sheet
Target filters on the year which displays the months you want in the new view
You might need to mess around with these setting to get it how you want exactly but an action is the way to go.

Related

Azure Devops Dashboards - How to chart the trend of query results over time based on work item history?

I want to be able to generate a stacked bar chart based on the results of a query, for example the number of open bugs and open features. I would like to see the resulting number of open bugs vs features from that query over a time period, for example the last 30 days. Specifically the number of bugs vs features that were open on that particular day, regardless of their current status. Is there a way to do this using an existing out of the box widget? I believe it should be possible to figure out this information using the history. Alternatively, is it possible to simply store the totals from the query somewhere in devops and then chart it? Or would I need to write a script to export the query results via the api and then use something like the power bi widget to chart it?
Sure, you can set up a chart of the query about the bugs and features opened in the last 30 days.
To meet this demand, you can do like as the steps below:
Set up a query with the following filter clauses. Save this query to the Shared Queries folder.
Work Item Type In Bug,Feature
State = [Any]
Created Date >= #StartOfDay('-30d')
On the Charts tab of the new query, create a new chart for the query like as below.
After saving the chart, add this chart to a specified dashboard in the project.
After above steps, navigate to the specified dashboard in the project, you can see the chart on the dashboard.
[UPDATE]
According to your latest reply, you want to get the Bug and Feature that were open state in the last 30 days. For these work items, we can think they satisfy one of the following conditions:
The work items were closed in the last 30 days, no matter what date they were created.
The work items are still open state currently. They do not have the closed date yet.
So, set up the query like as below should be able to match these work items.
Work Item Type In Bug,Feature
And State = [Any]
And Closed Date >= #StartOfDay('-30d')
Or Closed Date =
Group the last two clauses.
Then create the chart for the query.
Maybe the stacked chart would go some way to answering your problem.
https://learn.microsoft.com/en-us/azure/devops/report/dashboards/charts?toc=%2Fazure%2Fdevops%2Fboards%2Ftoc.json&bc=%2Fazure%2Fdevops%2Fboards%2Fbreadcrumb%2Ftoc.json&view=azure-devops#add-a-trend-chart
That produces charts with date as the x axis which, I think, is what you're looking for.

Dynamic data display in Tableau

I am new to tableau .I have a data contains date and rank ranges from 1 to 5. I am showing this data as a column chart.Here bars are the ranks...
I have other table which have columns like date,solvetime,rsla.
Now my requirement is If I click on the rank bar for a particular date then in the down it should show another bar chart which displays the solve time and rsla for that particular date.
Please help
Basically, this function can be implemented using the "use as filter" option of filter actions. So, you can use the selection from worksheet 1, as a filter to the worksheet 2.
For that, I would create a dashboard that would have both the worksheets with the appropriate reports created i.e. report 1 being the date and rank ranges, report 2 being the date, solvetime, rsla.
From report 1, I would click the drop-down menu of the sheet, to select the "use as filter" button and configure the filter action, on what sheet, on which field etc, using the dialog box that opens.
Please refer this link, which provides more depth towards what you might be looking for.
https://onlinehelp.tableau.com/current/pro/desktop/en-us/actions_filter.htm

Drillthrough function in Power BI column chart - show day numbers instead of dates

I have created 2 different column charts in my Power BI report. The charts show the report usage by month and day (Day 1-31) - in this case for October. Only one month can be selected at a time.
I have added a drill-through function to the chart so the user can access a more detailed report. This works fine with the first chart when the Date field is placed under Axis (example: 2017-11-14).
When I instead try to use the Year, Month, Day fields under Axis only the day is being sent through to the drill-through report. For example November 6'th 2017 is being picked up at 6'th of each month. It seems that the drill-though function is only using the lowest level of data.
The first option works fine, however I would like it to look the the chart below where you see the number of each day instead of the entire date.
Any thoughts or suggestions?
Edit:
This is what the drillthrough filters look like on the drillthrough report page (I have selected November 9'th on the other page):
(År = Year, Månad = Month, Dag = Day)
For your second option to work, you need to add Year/Month/Day values to Axis, then on drill-through report page also make sure you add these 3 fields to Drillthrough filters.
But if you only need to show shorter version of days instead of whole date, take a look at the formatting options ==> X-Axis, there you can turn off Concatenate labels and grindlines to get a nicer looking graph like in a picture below.
Main graph:
Drillthrough report:
I finally managed to solve the issue:
I selected the drill down arrow on the right (in the top-left corner of the visualization) to drill down to the lowest level and not the arrow in the middle which I thought did the exact same thing except with more steps.
Now the drillthrough function works and all the values are passed to the next report!

Tableau -- find total sales of the month

I have date-wise data of a month in Tableau and I want to know total sales of the month. Can anyone show how to do it?
Here is the snapshot of the issue:
First of all, I would advise you to go to the "Data Source" Panel on the bottom left and change the data type of the dimension "Date" to date instead of string. If this is not possible, please speak with your datasource admin. It might be a problem, that the dates are in different formats (like "1.07.06" and "1.11.2016").
After that you can simply choose the discrete MONTH(Date) dimension by rightklicking (blue pills). If you display data ranging over different years it is advised to keep the "YEAR(Date)" blue pill.
In the sample data it looks like this:
Steps to get total sales month wise
Drag your date into column shelf and change by Right click on date and change into month.
Drag sales into row shelf and Right click on measure and go into sum.so you will get total sales per month.

CRM Online 2015 Dashboards

Is it possible to have a Sub-Chart?
So, I have a line chart of data, On the vertical access is the user ,and on the horizontal ,displays the total data by month, what I'm trying to do is, if you click on a month , I want it to breakdown per week on horizontal axis, with the user on Vertical axis?
I known you can drill down, by selecting a field from the dropdown and selecting a chart.
But that's not giving me what i want.
Is this possible ?
No, it's not possible to do that in easy way.
I would suggest a work around:
Make additional chart to show (users x weeks) - you can call it a subchart.
Teach users to use charts like this:
Click on the chart (users x months) to pop it out from the dashboard
to see view+chart
Click on the month (that would filter the view to show only the data of selected month)
Using chart selector change the chart to show (user x week).
This would give the same result as the drilling you have described but with additional 2 mouse clicks.