Daily DAX : Day 384 AVERAGE
Power BI DAX: AVERAGE Function
Function Syntax
AVERAGE(<column>)
Description
The AVERAGE function calculates the arithmetic mean of the values in a column, ignoring any BLANK values and non-numeric entries.
Returns: A decimal number representing the average of all numbers in the specified column.
Use Case
Use AVERAGE when you want to find the typical value in a dataset, such as:
- Average sales per transaction
- Average customer satisfaction score
- Average employee performance rating
- Average delivery time in days
Example
Suppose you have a table SalesData with the following data:
| SalesID | Amount |
|---|---|
| 1 | 100 |
| 2 | 150 |
| 3 | 200 |
| 4 | BLANK |
DAX Measure:
Average Sales = AVERAGE(SalesData[Amount])
Result: (100 + 150 + 200) / 3 = 150
Result: 150 (BLANK values are ignored)
Important Notes
AVERAGEskipsBLANKand non-numeric values.- Use
AVERAGEXto calculate average over a table expression (e.g., average of calculated values). - Handles only one column at a time.
Related Functions
AVERAGEX(<table>, <expression>)– Average over a calculated expressionMEDIAN(<column>)– Middle valueSUM(<column>)/COUNTROWS(<table>)– Manual average
Comments
Post a Comment