nerdexam
Microsoft

70-466 · Question #87

You need to create the sales territory and product measures. Which aggregate function should you use for both measures?

The correct answer is B. Distinct Count. This question tests which SSAS aggregate function type is used to count unique values for measures such as distinct sales territories or distinct products.

Build an analysis services database

Question

You need to create the sales territory and product measures. Which aggregate function should you use for both measures?

Options

  • ACOUNT (DISTINCT column_name)
  • BDistinct Count
  • CDistinct
  • DCount

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    89% (25)
  • C
    7% (2)

Why each option

This question tests which SSAS aggregate function type is used to count unique values for measures such as distinct sales territories or distinct products.

ACOUNT (DISTINCT column_name)

COUNT(DISTINCT column_name) is T-SQL syntax used in relational queries; it is not a valid SSAS measure aggregate function type selectable in the Multidimensional model designer.

BDistinct CountCorrect

Distinct Count is the built-in SSAS aggregate function specifically designed to count the number of unique non-null values in a column. SSAS handles Distinct Count measures with specialized storage and query processing because they cannot be pre-aggregated across dimensions the same way SUM or COUNT can. It is the correct choice when the business requirement is to count unique occurrences - such as unique sales territories or unique products sold.

CDistinct

Distinct is not a recognized aggregate function type in SSAS Multidimensional or Tabular; it does not exist as a selectable aggregation option for measures.

DCount

Count counts all rows including duplicates and does not deduplicate values, so it would overcount when the goal is to measure the number of unique territories or products.

Concept tested: SSAS Distinct Count aggregate function for measures

Source: https://learn.microsoft.com/en-us/analysis-services/multidimensional-models/use-aggregate-functions

Topics

#aggregate functions#distinct count#measures#cube design

Community Discussion

No community discussion yet for this question.

Full 70-466 Practice