Skip to content

Automatic translation — the Portuguese version is the reference. View in Portuguese

DESVPAD

On this page (10)

Sample standard deviation.

FieldValue
CategoryStatistics
TypeAggregation (operates on a set of rows)
Arity1 argument (fixed)
Compiles to SQL (calculated column)Yes
VersionFormula engine v3.

Aliases#

Canonical name: DESVPAD. Accepted aliases (case-insensitive): stdev, stddev.

Syntax#

code
DESVPAD(coluna)

The 1st argument is the name of a column (bare identifier); the others are expressions.

Returns#

Number.

Null handling#

Blank values are IGNORED (they don't count as zero); a group with no values returns blank.

Evaluation context#

Aggregation — goes through the rows of the visual's current group.

Differences from DAX#

  • DAX equivalent: STDEV.S
  • Compatibility: Compatible with DAX
  • Note: SAMPLE standard deviation (n-1). There is no population version (STDEV.P).

Examples#

code
DESVPAD(ticket)

Example with values#

Input: column v = 2, 4, 6 (sample deviation).

code
DESVPAD(v)  →  2

Expected result: 2

Business example#

Summarize a period — total revenue, average ticket, spread of the value per order.

Common errors#

Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.


← Back to the formula index

Related links