Dax Function: Aggregation Functions
Category: Aggregation functions
Aggregation functions in Power BI are a category of DAX (Data Analysis Expressions) functions used to perform summarization and calculations on datasets. These functions process data across rows in a column or evaluate expressions in a table, providing insights like totals, averages, counts, and more.
Purpose:
- To compute summarized values from datasets for analysis, reporting, and visualization.
- To support decision-making by providing meaningful metrics like totals, averages, or unique counts.
Use Cases:
- Summing up sales or revenue data across regions or time periods.
- Calculating the average performance metrics for employees or products.
- Counting the distinct number of customers, transactions, or other unique identifiers.
Function | Description |
---|---|
APPROXIMATEDISTINCTCOUNT | Provides an estimated count of unique values in a column. |
AVERAGE | Calculates the arithmetic mean of all numerical values in a column. |
AVERAGEA | Computes the arithmetic mean of all values in a column, including logical values and text representations of numbers. |
AVERAGEX | Evaluates an expression for each row in a table and calculates the arithmetic mean of the results. |
COUNT | Tallies the number of non-blank rows in a specified column. |
COUNTA | Counts all non-blank rows in a specified column. |
COUNTAX | Counts non-blank results from evaluating an expression across a table. |
COUNTBLANK | Calculates the total number of blank cells within a column. |
COUNTROWS | Counts the rows in a specified table or those defined by an expression. |
COUNTX | Counts rows where an expression evaluates to a number within a table. |
DISTINCTCOUNT | Counts the total distinct values in a column. |
DISTINCTCOUNTNOBLANK | Counts distinct values in a column, excluding blanks. |
MAX | Returns the highest numeric value from a column or between two scalar expressions. |
MAXA | Provides the largest value in a column, including logical values and text numbers. |
MAXX | Evaluates an expression for each table row and returns the largest numeric value. |
MIN | Finds the smallest numeric value in a column or between two scalar expressions. |
MINA | Returns the smallest value in a column, considering logical values and text representations of numbers. |
MINX | Calculates the smallest numeric value after evaluating an expression for each table row. |
PRODUCT | Multiplies all numeric values in a column. |
PRODUCTX | Computes the product of an expression evaluated across each row in a table. |
SUM | Adds up all the numeric values in a column. |
SUMX | Returns the sum of an expression evaluated across each row in a table. |
Maximize the potential of Power BI and enhance your data insights with our expert consulting services. Whether you’re looking for assistance with advanced DAX functions, help designing interactive dashboards, or support in optimizing your data models for better performance, our skilled Power BI consultants are ready to provide tailored solutions for your business. Visit our Power BI consultancy page to learn more about how we can empower your organization to make more informed, data-driven decisions.
Aggregation functions in Power BI are used to compute summary statistics like totals, averages, and counts for datasets.
SUM calculates the total of a single column, while SUMX evaluates an expression row by row over a table and sums the results.
Use DISTINCTCOUNT when you need to calculate the number of unique values in a column, such as counting unique customers or products.
APPROXIMATEDISTINCTCOUNT provides faster results for large datasets by estimating unique counts instead of calculating them exactly.
Yes, aggregation functions can be combined with others like CALCULATE, FILTER, or IF to create more complex calculations.
Established in 2020, Lets Viz Technologies provides a full range of high-quality data analysis and data visualization services. We are also an authorized Zoho Partner.
Sitelinks