Azure DevOps Server Pie chart slice not filtering - pie-chart

I have a Pie chart as follows:
It has slices representing count of Work Items by State. When I click a slice, I'm taken tot he query result showing all work items instead of filtered to clicked state:
Here is the query:
What do I have to change here to get a filtered result instead of all?

You can use the "Filter work item" option in the top right corner to filter the status of work items.
As of this time, however, clicking on a slice and then displaying work items of that status is not supported. When you click on the chart, you essentially open the query used by the chart.
So you need to manually filter your desired status after clicking. In addition to status, it also supports filtering of information such as Assigned to, Tags, and so on.

Related

In Grafana, how to build a data link to filter current dashboard when there is more than one variable?

I'm using Grafana v8.3.4 (a551d74b11)
I've a dashboard with many variables (filters). One of those is for exemple TransactionType.
I would like my charts to filter on click.
For example with a pie chart using TransactionType, I want to filter the TransactionType variable ,when I click in one of the element of the pie chart, by this element.
The closest feature I found is to use data link.
So far I tried in the pie chart the two data link there after.
The syntax is OK but the effect is not doing what i’m expecting.
a)
/d/${__dashboard.uid}/${__dashboard}?var-TransactionType=${__series.name}
For this one the data link apply the filter on TransactionType but clear all the other filters variables, even clear the All, so the dashboard is in error.
b)
/d/${__dashboard.uid}/${__dashboard}?${__all_variables}&var-TransactionType=${__series.name}
this one apply all filters first then add the TransactionType filter but, it keep the previous All value, so the filter become All + value, that don’t work, the dashboard is in error too.
==> Is there a way to keep all the existing variable filter unchanged and replace the value for one variable filter ?
move var-TransactionType=${__series.name} before ${__all_variables}

Tableau Desktop Filter Disable/Enable

Working on Tableau desktop[Making a visualization] have two filters one cascaded to another.Need a help when making multiple selections in one filter should disable another filter. If one selection is made in a filter then other filter should be enabled and shown.
Looking for answers
Tableau graph
You could solve this in a dashboard using the sheet/object swapping and popping technique as explained here. Basically how it works is having a dummy sheet which is empty on a certain condition but which will have values if not. The parameter will be placed below this sheet which results in it moving downwards/upwards whenever the condition changes. Together with a motionless opaque text field it becomes possible to hide the filter. I tested the solution underneath.
You will need a calculated field hide_names which results in True if the condition is filled. In your case:
if COUNTD([Manager]) > 1 then False else True end
Next create a dummy worksheet which you will fill with another calculated field which does almost nothing e.g. 'a'. This sheet will be used to 'pop out' the filter in your dashboard. To have this functionality you need to drag the newly created hide_names into filters and filter on the custom value False.
Now let's look at the dashboard.
First bring in the original sheet together with the relevant filters.
Right click the manager filter and select "all using this data source". This way your dummy sheet will also be aware of changes in the filter.
Then create a horizontal floating object in which you need to drag the names filter. On top of the names you need to drag the dummy sheet so if the sheet is active it will push down the second filter.
What you should have now is once you select more than one manager a sheet containing 'a' is shown and the second filter is pushed down. This is not ideal. You will need one or two more things depending on the actual lay-out of your dashboard.
You can make your dummy sheet entirely white by changing the format so all rows/columns/text display white, disabling the tooltip and removing headers and titles.
Create a new empty floating text object. Right click on it and select format text object. Select white shading for this object. This way it becomes opaque. Drag and change dimensions of this object so it hides the second filter whenever the dummy sheet is shown.
Once you have all of these elements you can sort of play with it to make it work. You can find a demo of a dashboard with similar but not exactly the same functionality here.

Tableau Filter from calculated field, but I want to exclude some

I am trying to add to my current calculated field.
It is a fairly simple LEFT(UPPER([STR]),2) that I am currently using. This populates a filter list. However, I want to either modify the formula or the list itself to only include [STR] items where underlying data is and for any that do not have data, they are left off the list until they have data to be selecting.
think of the STR as if it were states abbreviations. IF COUNT([Things]) = 0 then I don't want the state on my filter list, but if there is or if there later gets some Things added in that state I want it to show up.
I tried using IF COUNT([Things]) > 0 THEN LEFT(UPPER([STR]),2) END but that doesn't seem to work. I am also open to just using a condition for showing the filter if that can work, but I am not sure how to set that up.
Strangely I had tried this solution before. I choose Show only relevant values on the filter in the filters box, that made it show nothing at all. However, if you click the drop down arrow on the Show filter card and choose show only relevant values that works.

Tableau add formula to dashboard action filter?

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?

In Tableau, how to pass values to action filters that are not in pie chart?

I am using Tableau desktop 8.1.
I have created a pie chart showing Shift timings and number of employees in each shift timings under different departments.
The pie chart is as follows :
Shift Timing as the "Color mark"
Count distinct employee as the "Angle mark"
I have created an action filter whereby clicking on a shift timing in the Pie chart will display another sheet which shows various details of the employee under that particular shift time.
I have used Action Filter where the field i have passed to the target filter is "Shift Time".But i am not able to add the Department Field as a target filter to the Actions Filter as tableau desktop displays an error "Missing fields on Pie chart".
I need to pass the Department also to the Action filter ( but it is not present in the pie chart) as the user might select Multiple departments from the given list of Departments and the report should show the
My requirement is that if the user selects Shift time (for e.g 9am-5pm) and four departments then upon clicking the 9am-5pm shift in the pie chart should display the details of employees under those departments.I am not able to achieve this because i am not able to pass the Department as target filter into the Action filter.
Thanks and Regards
A little bit difficult to understand without seeing your actual workbook.
If I understand correctly, you want do display a pie chart, and when I click on a segment of the pie chart, you want to display a list of employees under that segment (shift time), but you also want to filter the department.
What I would do is to create a dashboard with 2 sheets, 1 with your pie chart, and one with the employee names/ids (simply drag employee name/id field to the rows and that's all). On the second sheet I would include a filter using department field.
Back on dashboard I would go to the pie chart sheet, click on the gray triangle on the top right, and select "Use as Filter". Then I would go to the other sheet, click the same triangle, go on Quick Filters and select the department filter. And voilà, the user is able to filter departments on the right of your dashboard, and click on the pie segments to select a shift.
Hope it helps
I have another way to resolve this issue.
Dashboard->Action->add action - >