70-467 · Question #12
You are modifying a SQL Server Reporting Services (SSRS) report for a SQL Server Analysis Services (SSAS) cube. The report defines a report parameter of data type Date/Time with which users can…
The correct answer is A. Edit the dataset query parameter. Change the Value property of the report parameter to an. An SSRS Date/Time parameter cannot be passed directly to an MDX query because MDX requires member key strings, not .NET DateTime objects. The least-effort fix is to convert the parameter value using an expression on the dataset query parameter.
Question
You are modifying a SQL Server Reporting Services (SSRS) report for a SQL Server Analysis Services (SSAS) cube. The report defines a report parameter of data type Date/Time with which users can filter the report by a single date. The parameter value cannot be directly used to filter the Multidimensional Expressions (MDX) query for the dataset. You need to ensure that the report displays data filtered by the user-entered value. You must achieve this goal by using the least amount of development effort. What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.)
Options
- AEdit the dataset query parameter. Change the Value property of the report parameter to an
- BEdit the dataset query parameter. Change the Name property of the dataset query parameter
- CEdit the dataset query parameter. Create a subcube subquery that uses the StrToSet MDX
- DChange the dataset query to Transact-SQL (T-SQL).
How the community answered
(21 responses)- A67% (14)
- B19% (4)
- C5% (1)
- D10% (2)
Why each option
An SSRS Date/Time parameter cannot be passed directly to an MDX query because MDX requires member key strings, not .NET DateTime objects. The least-effort fix is to convert the parameter value using an expression on the dataset query parameter.
By editing the dataset query parameter and changing its Value property to an expression - such as wrapping the Date/Time parameter in a Format() call to produce an MDX-compatible member key string like '[Date].[Date].&[yyyyMMdd]' - you resolve the type mismatch without rewriting the MDX query or adding subqueries. This is the minimum-effort approach because only the parameter value mapping changes, leaving the existing MDX query structure intact.
Changing the Name property of the dataset query parameter only affects how the parameter is referenced internally and does not resolve the underlying type incompatibility between a .NET DateTime value and the string-based MDX member format the SSAS cube requires.
Using a StrToSet subcube subquery would resolve the type issue but requires substantially rewriting the MDX query structure, making it a higher-effort solution than simply modifying the parameter value expression.
Rewriting the dataset query in T-SQL replaces the MDX cube query entirely with a relational query, which is the highest-effort option and changes the fundamental data retrieval architecture away from SSAS.
Concept tested: SSRS MDX dataset parameter value expression conversion
Source: https://learn.microsoft.com/en-us/sql/reporting-services/report-design/report-parameters-report-builder-and-report-designer
Topics
Community Discussion
No community discussion yet for this question.