Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 使用MDX将日期范围作为SSRS中的参数_Reporting Services_Ssas_Mdx_Ssrs 2008 R2_Ssas 2008 - Fatal编程技术网

Reporting services 使用MDX将日期范围作为SSRS中的参数

Reporting services 使用MDX将日期范围作为SSRS中的参数,reporting-services,ssas,mdx,ssrs-2008-r2,ssas-2008,Reporting Services,Ssas,Mdx,Ssrs 2008 R2,Ssas 2008,我是MDX查询的初学者 我创建了一个使用MDX查询的SSRS报告,该报告必须基于日期范围进行拉取。我使用where子句和range-like where [Date].[Month].&[200609] : [Date].[Month].&[200710] 我必须从参数传递这两个值,创建了两个参数@from和@to 并在查询设计器中设置值。 现在,当我使用@from:@到时,我得到一个错误。 我确信我必须使用一些函数,比如strtomember等等。请引导您的参数值必须包含一个

我是MDX查询的初学者

我创建了一个使用MDX查询的SSRS报告,该报告必须基于日期范围进行拉取。我使用where子句和range-like

where [Date].[Month].&[200609] : [Date].[Month].&[200710]
我必须从参数传递这两个值,创建了两个参数@from和@to 并在查询设计器中设置值。 现在,当我使用
@from:@到
时,我得到一个错误。

我确信我必须使用一些函数,比如strtomember等等。请引导

您的参数值必须包含一个带有
日期
维度层次结构的字符串

示例where子句:

Where STRTOMEMBER(@From) : STRTOMEMBER(@To)
@From值应该是如下所示的字符串:

[Date].[Month].&[200609]
将参数集创建为文本时,按如下方式设置可用值:

[Date].[Month].&[200609]

在值中输入以下表达式:

="[Date].[Month].&[200601]"
注意:标签是要在报表选择器中显示的标题。您还可以使用查询设置这些值


让我知道这是否有用。

谢谢,没有将值作为字符串传递,当转换为字符串时,它工作正常。