POWER BI: Modeling

Statistical Functions


GEOMEAN functions

The geomean functions returns the geometric mean. The geometric mean is calculated by multiplying all the values in a column and then taking the nth root of the product of n numbers. It is often used to find the average growth rates of a population or in finance the calculate in average interest rate over time.

There are two types of geometric mean functions.

  • GEOMEAN(column)
  • GEOMEANX(table,expression)
GEOMEAN
Example:

Find the geometric mean for the world growth rate:

                 pop_geomean = GEOMEAN('world population growth'[growth rate])
	            
GEOMEANX

Use when you want to find the geometric mean of an expression

Example:

Find the geometric mean for the inflation rate.

                    Geomean_x = GEOMEANX('inflation rate', 1 + 'inflation rate'[Inflation rate])
	           

GEOMEANX is used to evaluate an expression over a table. In this case the expression is simply 1 + inflation rate. 1 is added onto the inflation rate, since the inflation rate is 0% in several years, which would incorrectly result in a geometric mean of zero.

Power BI Demo:

The functions used above are plotted in Power BI to compare



Dash-Intel is a Power BI and Tableau resource site for data visualization and building BI dashboards.

Data Analyst & Consultant

Copyright 2015-2023 Dash-Intel.com Terms