在 SSRS 2016 中,我正在针对表格实例编写一些报告。我们使用 MDX 作为查询语言。我在报告中手动指定默认唯一名称时遇到问题。 有任何想法吗?它是一个错误吗?逃避问题?
我们有许多参数,我们将像这样的维度属性作为可用值:
WITH MEMBER [Measures].[Label] AS [Dimension].[Dimension Attribute].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[UniqueName] AS [Dimension].[Dimension Attribute].CURRENTMEMBER.UniqueName
SELECT {[Measures].[Label], [Measures].[UniqueName] ON 0,
[Dimension].[Dimension Attribute].Members ON 1
FROM [CubeName]
如果我尝试手动设置默认值,Visual Studio 似乎可以识别该值,但 SSRS 服务器没有。我将其设置为:
[Line of Business].[Line of Business].[All]
SSRS 似乎逃脱了这一点
\[Line of Business\].\[Line of Business\].\[All\]
这也是尝试在报告之间传递选择的问题。值得注意的是,如果我通过查询设置默认值,服务器上的 SSRS 很乐意选择默认值:
WITH MEMBER [Measures].[UniqueName] AS AS [Dimension].[Dimension Attribute].CURRENTMEMBER.UniqueName
SELECT [Measures].[UniqueName]
FROM [CubeName]
WHERE [Dimension].[Dimension Attribute].[All]