Tableau Filters Enabled/Disabled based on another control - tableau-api

I have a single data source and multiple sets of filters into my dashboard based on the same data source. When a particular set of filters is selected I want to disable the other set of filters. Is there any way I can work this out on a Tableau dashboard.
For Ex. There are 5 groups of filters A, B, C, D, E.
I want to give my users the options to select the filters from Group A or Group B. So when the filters from Group A are selected the filters from Group B should automatcally be disabled.
Thanks n advance

Related

Filter shared query results with another panel in Grafana

Is it possible to filter the data shared between panels in Grafana?
Let's say I would query all the columns in the first panel with:
SELECT time, A, B, C, D FROM "table"
And in a second panel, I would like to show only A end B, how can I filter that columns?
Thanks!
Add transformation (e. g. Organize fields) and hide fields, which you don't need - it is not a "filtering", but field hiding.

How to dynamically filter based on different column in tableau?

I have two columns site and Profit catgeory.
Site --> A, B, C
Profit Category --> 1,2,3 [ It will be calculated dynamically, when data changes]
Data:
I want to filter site based on profit category.
Workbook:
If I select Site A in filter option, it hsould display all the sites which is in same Profit category as Site A. If Site A falls under Profit Category 1 means all Sites wchich falls under Profit Catgeory 1 should be dispalyed.
I am struck with this. Please help me to solve this.
You need to display a parameter control instead of a filter control.
Parameters are used to hold the (single) response from the user for making a choice. You can reference parameters in many places, including calculated fields. You can then use calculated fields as a filter.
You can combine these features in different ways. In your case, I suggest creating a parameter based on the Site field. Showing the parameter control and allowing the user to select a site. Then building a boolean calculated field to determine whether a record should be included in the analysis or not based on the selected site and the data values in the current record.
Filter on that calculated field and you should be able to get the effect you described.

Tableau - Filter View Based on Different Variable

Is there a way in Tableau to filter a view based on its relationship with a different variable?
For example, say I have a dataset with variables Company (values = A, B, C) and Product (values = 1, 2, 3). In one view, I want to select a Product. In the other view, I want to filter to only Companies that have that Product, but I want to show all Products for those companies. The typical filtering approach in Tableau could easily show me which Companies have that Product, but the rows with other Products from the same Companies would be excluded by the filter.
Any solutions? I get the feeling I may be missing something simple.
Create a parameter to represent the product of interest. You can load the values of the parameter from the Product field, but will have to add/remove choices periodically as product list changes.
Place Company on the filter shelf, and use the condition tab to choose only companies that have that Product with a formula such as max(Product = [Product of Interest])
For more than one product at a time, create a set of Products instead of a parameter and change the formula to test for set membership instead of field equality. If you have a set of Products called [Products of Interest], note the plural, the formula is then simply max([Products of Interest])
The nice part about a set is that it notices changes to the database Products list automatically. The bad part about a set is that Tableau doesn't make it easy to add or remove elements from a set in the user interface unless you are using Tableau Desktop (at least not by version 10.1)
In addition to the methods explained by Alex, (if you are okay with having multiple sheets) you can have 2 sheets linked with an Action filter -
First sheet would just show the unique list of Products (this acts as the Source sheet)
Second source would contain whatever view you like to show with Companies and their products (this acts as the destination sheet)
Create an action filter between the 2 sheets and use the "Selected fields" under Target filters to filter using the Company field. This way, if you select any specific product(s) in the first sheet, all relevant companies would be filtered in the second sheet but all the products show up too!
EDIT: this is a good solution in many cases, but there are a few things to be careful about.
Note that the first sheet needs Company on some shelf, possible detail, so that field is available for the filter action. If there can be multiple companies per product, then that can complicate the viz a bit.

Graph based on the user filter selection

On a tableau dashboard there are 2 filters and a bar graph.
The filters are 1. to select top or bottom customers
2. how many ex:5,10,15 etc
when the user selects top and 5 in the respective filters then top5 customers have to show in the bar graph.
if the user selects bottom ,10 in the respective filters then bottom 10 customers have to shown in the graph.
how to achieve this when the data contains only customers details and their billing amount ?
Instead of filter, you can go with the Parameter for getting the result. I have done the top and bottom multiple times in many of the tableau visualizations and its so easy.
Below are the steps to achieve your requirement.
Create a parameter that will allow you to select top and bottom
Create another parameter that will allow you to select the desired numbers like 5, 10, 15 etc.
Here i have created a parameter that will have values from 10 to 50 in a step size of 10.
Create a calculated field that will subset data based on the parameters chosen
In the above screenshot, I am using the top site parameter and creating a conditional statement that will show the states based on the value chosen in the site parameter and the value for that state.
Put the calculated field in the filter and select show and click ok in the filter box.
Now the view will show the top count based on the value selected in the parameter.
Please note the calculation is for top N and for bottom N you need to change the calculation.
Hope this will help you. I can provide you a workbook if you need.

Declaration of n number variable at runtime

I am creating a graph in crystal report which displays values of 15 categories.
But I want to make it user define graph.
User of my application choose no. of category he wants. as per this condition i want to change my graph.
I am able to display all category in a graph.
Now I want to pass multiple category to a stored procedure and retrieve result and show it into graph.
I am sending Categories in string variable with comma
string abc = 'a,b,c'
Now I want to separate a b c and compare it with one column. and get the data n display the graph of category a, b, c
create a Dynamic parameter in crystal reports to list all those categories. Enable multiple values, so the user can select the ones he/she wants to show on the report and under record selection formula you will write {your field} in ?your parameter.