VARX.S Function (DAX)

How does the VARX.S function (DAX) work?

The VARX.S function (DAX) returns the variance of a sample population.

VARX.S Formula Syntax

VARX.S(
     <table>, <expression>
)

How do you use the VARX.S function?

This function is used to evaluate the given expression for each row of the given table and returns the variance of the expression

Related Blog Posts

Related Support Forum Posts

Dax Calculation question
Dax not working
DAX Buffer Calculation Query

Considerations when using the VARX.S function

  1. VARX.S evaluates expression for each row of table and returns the variance of expression; on the assumption that table refers to a sample of the population. If table represents the entire population, then you should compute the variance by using VARX.P.
  2. VAR.S uses the following formula:∑(x – x̃)²/(n-1)where x̃ is the average value of x for the sample populationand n is the population size
  3. Blank rows are filtered out from columnName and not considered in the calculations.
  4. An error is returned if columnName contains less than 2 non-blank rows.

Related Video Tutorials

Formula examples using the VARX.S function

=VARX.S(InternetSales_USD, InternetSales_USD[UnitPrice_USD] – (InternetSales_USD[DiscountAmount_USD]/InternetSales_USD[OrderQuantity]))

= VARX.S (West_Sales, West_Sales[Amount])

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI

DOWNLOAD


Download our comprehensive DAX Formula Reference Guide as perfect companion as you learn how to use DAX formulas within Power BI.


Download DAX Formula Reference Guide