GEOMEANX

Updated on

GEOMEANX is a DAX function that returns the geometric mean of an expression evaluated for each row in a table.

Syntax

GEOMEANX(
   Table,
   Expression
)
Argument Properties Description
Table Table over which the Expression will be evaluated.
Expression Expression to evaluate for each row of the table.

Return Values

A decimal number.

Remarks

  • The GEOMEANX function takes as its first argument a table, or an expression that returns a table. The second argument is a column that contains the numbers for which you want to compute the geometric mean, or an expression that evaluates to a column.

  • Only the numbers in the column are counted. Blanks, logical values, and text are ignored.

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Example

The following computes the geometric mean of the ReturnPct column in the Investments table:

= GEOMEANX( Investments, Investments[ReturnPct] + 1 )

Other functions related to GEOMEANX are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/geomeanx-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy