DVar, DVarP Functions Example

This example returns estimates of the variance for a population and a population sample for orders shipped to the United Kingdom.  The domain is an Orders table.  The criteria argument restricts the data by making the expression apply only to records in which Ship Country equals UK.

X = DVar("[Freight]", "Orders", "[Ship Country] = 'UK'")  ' Sample estimate.

Y = DVarP("[Freight]", "Orders", "[Ship Country] = 'UK'") ' Population estimate.