-
SUMMARIZE: This function is used to perform aggregation operations like SUM, AVG, MIN, and MAX on a set of values. It's commonly used to calculate totals, averages, and other summary statistics.
Example: SUMMARIZE([Sales], [Region]) would calculate the total sales for each region.
-
FILTER: The FILTER function is used to create a subset of data based on a specified condition. It allows you to focus on specific records that meet certain criteria.
Example: FILTER([Sales], [Region] = "East") would return only the sales records for the "East" region.
-
CALCULATE: The CALCULATE function is used to perform calculations on filtered data. It allows you to create calculated fields that can be used in visualizations.
Example: CALCULATE([Sales] / [Units Sold]) would calculate the average sale price for each record.
-
MERGE: The MERGE function is used to combine two or more tables into a single table. It's useful when you have related data spread across multiple tables and you want to bring them together for analysis.
Example: MERGE([Orders], [Customers], [Order ID] = [Customer ID]) would combine the "Orders" and "Customers" tables based on the matching "Order ID" and "Customer ID" fields.
-
RELATED: The RELATED function is used to retrieve a value from a related table. It's commonly used in conjunction with the RELATEDTABLE function to access data from a related table.
Example: RELATED([Customers].[Customer Name]) would return the name of the customer associated with a specific order.
-
RELATEDTABLE: The RELATEDTABLE function is used to specify the related table from which to retrieve a value using the RELATED function. It's commonly used in conjunction with the RELATED function to access data from a related table.
Example: RELATED([Orders].[Customer Name]) would return the name of the customer associated with a specific order.
-
RELATEDCOUNT: The RELATEDCOUNT function is used to count the number of related records in a related table. It's commonly used to create calculated fields that display the number of related records.
Example: RELATEDCOUNT([Orders].[Customer ID]) would return the number of orders placed by a specific customer.
-
RELATEDVALUE: The RELATEDVALUE function is used to retrieve a value from a related table based on a specified condition. It's commonly used in conjunction with the RELATED function to access data from a related table.
Example: RELATEDVALUE([Orders].[Order Date], [Orders].[Order ID] = [Order ID]) would return the order date for a specific order.
-
RELATEDTABLECOUNT: The RELATEDTABLECOUNT function is used to count the number of related tables for a specified table. It's commonly used to determine whether a table has any related tables.
Example: RELATEDTABLECOUNT([Orders]) would return the number of related tables for the "Orders" table.
-
RELATEDTABLES: The RELATEDTABLES function is used to retrieve a list of related tables for a specified table. It's commonly used to determine which tables are related to a specific table.
Example: RELATEDTABLES([Orders]) would return a list of related tables for the "Orders" table.
These are just a few of the many Tableau functions available. Each function serves a specific purpose and can be used to perform complex data analysis and visualization tasks.