SSRS参数不刷新
SSRS parameter not refreshing
我在单击“查看报告”或“刷新”按钮时在 SSRS 中获取基于查询的参数进行刷新时遇到问题。
首先我的数据源来自 SSAS,我想在 BU 和 GM 之间级联。
所以我有 2 个数据集 Param_BU 和 Param_GM
对于 Param_BU,代码是
WITH MEMBER [Measures].[ParameterCaption] AS [BUSINESS
UNIT].[Business Unit Hierarchy].CURRENTMEMBER.MEMBER_CAPTION MEMBER
[Measures].[ParameterValue] AS [BUSINESS UNIT].[Business Unit
Hierarchy].CURRENTMEMBER.UNIQUENAME MEMBER
[Measures].[ParameterLevel] AS [BUSINESS UNIT].[Business Unit
Hierarchy].CURRENTMEMBER.LEVEL.ORDINAL SELECT
{[Measures].[ParameterCaption], [Measures].[ParameterValue],
[Measures].[ParameterLevel]} ON COLUMNS ,FILTER( [BUSINESS
UNIT].[Business Unit
Hierarchy].ALLMEMBERS,[Measures].[ParameterCaption]<>null) ON ROWS
FROM [Model]
并且对于数据集 Param_GM
WITH
MEMBER [Measures].[ParameterCaption] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
[BUSINESS UNIT].[GM Area Desc].ALLMEMBERS ON ROWS
FROM (select StrToSet(@Param_BU,Constrained) on columns from [Model])
我已经在数据集上设置了参数 Param_GM
但是有一个错误说 "The query contains the Param_BU parameter, which is not declared."
我已经尝试关闭程序并重新启动计算机,但没有任何效果。
请帮忙
您的参数是否与数据集属性的 参数 选项卡中的参数匹配?
我在单击“查看报告”或“刷新”按钮时在 SSRS 中获取基于查询的参数进行刷新时遇到问题。
首先我的数据源来自 SSAS,我想在 BU 和 GM 之间级联。 所以我有 2 个数据集 Param_BU 和 Param_GM
对于 Param_BU,代码是
WITH MEMBER [Measures].[ParameterCaption] AS [BUSINESS
UNIT].[Business Unit Hierarchy].CURRENTMEMBER.MEMBER_CAPTION MEMBER
[Measures].[ParameterValue] AS [BUSINESS UNIT].[Business Unit
Hierarchy].CURRENTMEMBER.UNIQUENAME MEMBER
[Measures].[ParameterLevel] AS [BUSINESS UNIT].[Business Unit
Hierarchy].CURRENTMEMBER.LEVEL.ORDINAL SELECT
{[Measures].[ParameterCaption], [Measures].[ParameterValue],
[Measures].[ParameterLevel]} ON COLUMNS ,FILTER( [BUSINESS
UNIT].[Business Unit
Hierarchy].ALLMEMBERS,[Measures].[ParameterCaption]<>null) ON ROWS
FROM [Model]
并且对于数据集 Param_GM
WITH
MEMBER [Measures].[ParameterCaption] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [BUSINESS UNIT].[GM Area Desc].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
[BUSINESS UNIT].[GM Area Desc].ALLMEMBERS ON ROWS
FROM (select StrToSet(@Param_BU,Constrained) on columns from [Model])
我已经在数据集上设置了参数 Param_GM 但是有一个错误说 "The query contains the Param_BU parameter, which is not declared."
我已经尝试关闭程序并重新启动计算机,但没有任何效果。
请帮忙
您的参数是否与数据集属性的 参数 选项卡中的参数匹配?