Syntax
Tutorial with example
In this series of statistical functions we are looking at the AVERAGE:
Download example file:
To get the files:
1. Go to Curbal Download Center > Dax Fridays
2. Get File #96
Remarks
This function takes the specified column as an argument and finds the average of the values in that column. If you want to find the average of an expression that evaluates to a set of numbers, use the AVERAGEX function instead.
Nonnumeric values in the column are handled as follows:
- If the column contains text, no aggregation can be performed, and the functions returns blanks.
- If the column contains logical values or empty cells, those values are ignored.
- Cells with the value zero are included.
- When you average cells, you must keep in mind the difference between an empty cell and a cell that contains the value 0 (zero). When a cell contains 0, it is added to the sum of numbers and the row is counted among the number of rows used as the divisor. However, when a cell contains a blank, the row is not counted.
Whenever there are no rows to aggregate, the function returns a blank. However, if there are rows, but none of them meet the specified criteria, the function returns 0. Excel also returns a zero if no rows are found that meet the conditions.
Tutorial with example: Calculate Moving averages in Power BI
In today’s video we will learn how to use DATESINPERIOD function using Moving Average calculation. First we will explain what a Moving average 3 months is and how it is calculated. Later on we will build a measure that will explain how DATESINPERIOD is used.
Download example file:
Not available
Leave a Reply