How does the STDEVX.S function (DAX) work?
The STDEVX.S function (DAX) returns the standard deviation of a sample population.
STDEVX.S Formula Syntax
How do you use the STDEVX.S function?
This function is used to evaluate an expression for each row of the table and returns the standard deviation of an expression, assuming that the table refers to a sample of the population.
Related Blog Posts
Related Support Forum Posts
Considerations when using the STDEVX.S function
- STDEVX.S evaluates expression for each row of table and returns the standard deviation of expression assuming that table refers to a sample of the population. If table represents the entire population, then compute the standard deviation by using STDEVX.P.
- STDEVX.S uses the following formula:√[∑(x – x̃)²/(n-1)]where x̃ is the average value of x for the entire populationand n is the population size
- Blank rows are filtered out from columnName and not considered in the calculations.
- An error is returned if columnName contains less than 2 non-blank rows.
This DAX function may return different results when used in a model that is deployed and then queried in DirectQuery mode.
Related Video Tutorials
Formula examples using the STDEVX.S function
=STDEVX.S(RELATEDTABLE(InternetSales_USD), InternetSales_USD[UnitPrice_USD] – (InternetSales_USD[DiscountAmount_USD]/InternetSales_USD[OrderQuantity]))
= STDEVX.S (West_Sales,West_Sales[Amount])