70-466 · Question #84
You need to create the KPI in the AdhocReports project in time for the next production release cycle. What should you do?
The correct answer is C. Create a measure by using the SUM([OrderQuantity]) expression Then use the CREATE KPI CURRENTCUBE statement to define the KPI and target value.. This question tests how to programmatically define a KPI in SSAS Multidimensional using MDX scripting rather than the designer UI.
Question
Options
- ACreate a measure by using the SUM([OrderQuantity]) expression and create a KPI based on the measure. Then set the target value.
- BCreate a KPI based on the OrderQuantity column and then set the target value.
- CCreate a measure by using the SUM([OrderQuantity]) expression Then use the CREATE KPI CURRENTCUBE statement to define the KPI and target value.
How the community answered
(21 responses)- A5% (1)
- B14% (3)
- C81% (17)
Why each option
This question tests how to programmatically define a KPI in SSAS Multidimensional using MDX scripting rather than the designer UI.
While creating the SUM measure first is correct, this option implies using the designer GUI rather than the CREATE KPI CURRENTCUBE MDX statement, which is necessary for scripted deployment in the project.
A KPI in SSAS cannot be based directly on a column - it must reference a measure expression; skipping the measure creation step makes this option invalid.
The CREATE KPI CURRENTCUBE MDX statement is the scripted approach to defining a KPI in SSAS Multidimensional, which is required when deploying via a project script rather than interactively. A measure must first be created from SUM([OrderQuantity]) because KPIs in SSAS must be based on a numeric measure expression, not a raw column. Using the CREATE KPI CURRENTCUBE statement allows the target value and all KPI properties to be declared in the cube's MDX script, making it reproducible in the release pipeline.
Concept tested: Creating SSAS KPIs using MDX CREATE KPI CURRENTCUBE
Source: https://learn.microsoft.com/en-us/analysis-services/multidimensional-models/key-performance-indicators-kpis-in-multidimensional-models
Topics
Community Discussion
No community discussion yet for this question.