Highlight AND Filter Polygon - tableau-api

I have a dashboard where district level data of a country is displayed. I have religion break up on another bar-plot. I have been able to create a dropdown, so that the bar-plot is updated based on selected district.
I also know how to create a dropdown which would highlight the selected district on the map.
How can I create a dropdown which does both - highlights the polygon AND updates the bar-plot?

Related

How can I get a list of which kids selected which options in a Google sheet result from a Checkbox grid form

I know this is very basic but I'm stumped - we have a checkbox grid form of 10 Post Prom Prizes that kids can choose up to 5 of. We will then randomly select the winner. What array or formula can I use to get a list of the student names that selected each prize? Should I use a different form format?

Create Actions From Tableau Map (with points)

I am familiar with how to create actions in Tableau, but doing so with map points has stumped me. It seems as though Tableau uses the lat/long measures uniquely and different than how it would another measure.
The expected behavior I want is a user to be able to select a single map point from a Tableau sheet so I can use that selection to drive an action (in this case adding the selection to a separate, blank sheet).
Here is one workaround, but this isn't a stable solution for the end-user:
1) Find desired map point -> right-click -> keep only
2) From the new 'Inclusion' pill that appears under 'Filters'...right-click -> apply to worksheets -> selected worksheets -> choose sheet
Thanks, Vamsi. I solved this morning a bit differently, it was actually really easy and didn't require any calculations:
Used carrot on my map's toolbar to 'Use as filter.'
Added a hidden crosstab to the same dashboard that, of course, changed to show the chosen map point.
Used that sheet to power my other calculation.
Essentially, I had to have both sheets on the same dashboard which allowed 'Use as filter' to solve my challenge.
(A) As each map point (generated lat/long value) is linked to a specific set of Geographic dimensions, you can create an index/combination of these fields as a calculated field.
For example, if the fields "City", "State" are the geographic dimensions, create a calculated field
Index = [City] + ", " + [State]
After you create an Action filter from the map to the desired blank sheet, at the bottom of the "Add filter Action" window use "Selected fields" under Target filters and click Add filter. In the pop-up, select the recently created Index field for filtering.
(B) You can also just add the City and State fields separately into the "Selected fields" in the Action filter and not have to create the Index altogether.
In both ways, even if there are multiple rows of data for the same location on the map, the result would show all those rows.

Magento2 city dropdown in address field

How can I convert the city input field to drop-down and make dependent it on region?
City will be depend on the selected region. So when user select region, dependent city will be populated in city dropdown.

Tableau Hierarchy Filter for Scatterplot

I am very new to Tableau, and I am trying to create a Scatterplot which can be viewed at different levels within the Hierarchy on the same Dashboard. For example, suppose I have employee counts, company counts and population density and I have this information by city, and these cities are in certain states.
I would like to be able to view the ratio # Employees/# Companies along the x-axis, population density along the y-axis, and I would like the ability to have each city shown as a separate bubble, and be able to, say, filter on Maryland, and show only the cities within for Maryland. This is all very straightforward using two quickfilters.
I'd also like to be able to somehow allow the user to specify that they want to see the bubbles at the State level, and once they select that option, it no longer shows the bubbles by city, it has aggregated those bubbles and is showing them by State. How do I do this?
Thanks!
Well, that is very easy to do when you are editing the view (just drag the field to detail and use the collapse option), but not so easy to provide this option to users.
I can think of a little hack. Create a parameter named [Level]. Make it a list of values, like 'City' and 'State'.
Now create a calculated field [Level of detail]:
CASE [Level]
WHEN 'City' THEN [City]
WHEN 'State' THEN [State]
END
I'm assuming your city and state fields are named [City] and [State].
Now drag this [Level of detail] field to details, and let the user choose the parameter. When he chooses 'State', it should aggregate on State level. Same for City.
One approach is to create a hierarchy out of the City and State fields.
To do that, in the data pane on the left, drag the City field and drop on top of the State field. You should get prompted for a hierarchy name of your choice, and then see the two fields grouped together in the data pane underneath the hierarchy name. State should be above City, but if not, just drag into the right order.
Now drag state to the detail shelf and build your view. Note there is a + sign to the left of State on marks card. You can press the + to expand the hierarchy and drill down to the City level. Then you can hit - to roll back up.
Custom hierarchies work for all kinds of discrete dimensions, not just those with geospatial roles.

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 - >