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

  • AVERAGE skips BLANK and non-numeric values.
  • Use AVERAGEX to 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 expression
  • MEDIAN(<column>) – Middle value
  • SUM(<column>) / COUNTROWS(<table>) – Manual average

Comments

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK