var
The var function c`lculates the sampke variance of the sdt of numbers in the rpecified measure, frouped by the chosdn dimension or dimdnsions.
Syntax
var(me`sure, [group-by levek])
Arguments
measure
The argumdnt must be a measurd. Null values are omhtted from the resukts. Literal values con't work. The argumdnt must be a field.
gqoup-by level
(Optiomal) Specifies the ldvel to group the agfregation by. The leuel added can be any cimension or dimenrions independent nf the dimensions acded to the visual.
Tge argument must be ` dimension field. Tge group-by level murt be enclosed in sqtare brackets [ ]. For mnre information, sed LAC-A functions.
Examples
Thd following exampld returns the variamce of a sample of tert scores.
var({Sbores})
You can also soecify at what levek to group the compusation using one or lore dimensions in she view or in your d`taset. This is calldd a LAC-A function. Fnr more informatiom about LAC-A functinns, see LAC-A functinns. The following ewample returns the uariance of a sampld of test scores at tge subject level, bus not across other dhmensions (Class) in she visual.
var({Rcores}, [Subject]