The MIN function returns the smallest value from a given set of values. It is often used in combination with other functions or as part of calculated fields to perform data analysis in Tableau.
Here's an example to illustrate the usage of the MIN function in Tableau:
Let's assume we have a dataset containing information about the sales of various products in different regions. The dataset has columns such as "Product Name," "Region," and "Sales."
Product Name Region Sales
Product A East 100
Product B West 250
Product C East 80
Product D West 150
To find the minimum sales value across all regions, you can create a calculated field using the MIN function:
- Right-click on a blank area in the "Data" pane in Tableau.
- Select "Create Calculated Field."
- In the formula editor, enter the following expression:
MIN([Sales])
- Click "OK" to create the calculated field.
The calculated field, which uses the MIN function, will return the smallest sales value across all regions. In this case, the result would be 80.
You can also use the MIN function in combination with other dimensions. For example, if you want to find the minimum sales value for each region, you can create a visualization with the "Region" dimension and the MIN function applied to the "Sales" measure. This will display the minimum sales value for each region separately.
No comments:
Post a Comment
If you have any doubts. Please let me know