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.
Question
Options
- ACOUNT (DISTINCT column_name)
- BDistinct Count
- CDistinct
- DCount
How the community answered
(28 responses)- A4% (1)
- B89% (25)
- C7% (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.
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.
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.
Distinct is not a recognized aggregate function type in SSAS Multidimensional or Tabular; it does not exist as a selectable aggregation option for measures.
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
Community Discussion
No community discussion yet for this question.