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 参数值中的SSRS空间问题_Reporting Services_Ssas_Ssrs 2008 R2 - Fatal编程技术网

Reporting services 参数值中的SSRS空间问题

Reporting services 参数值中的SSRS空间问题,reporting-services,ssas,ssrs-2008-r2,Reporting Services,Ssas,Ssrs 2008 R2,我在SSRS报告中遇到了一些参数问题,当我的多值参数包含中间的空格时,我得到了语法错误 如果我选择任何其他不包含空格的参数值,那么它工作得很好。我使用SSAS多维数据集作为数据源 WITH MEMBER [Measures].[PV] AS @Percentile Member [Measures].[CntCT] as Count(NonEmpty(STRTOSET(@State) * [Tb Main].[UID].[UID].ALLMEMBERS,[Measures].[CPT1] ))

我在SSRS报告中遇到了一些参数问题,当我的多值参数包含中间的空格时,我得到了语法错误

如果我选择任何其他不包含空格的参数值,那么它工作得很好。我使用SSAS多维数据集作为数据源

 WITH MEMBER [Measures].[PV] AS @Percentile
Member [Measures].[CntCT] as Count(NonEmpty(STRTOSET(@State) * [Tb Main].[UID].[UID].ALLMEMBERS,[Measures].[CPT1] ))
Member [Measures].[PVInt20] as  Int(((([Measures].[CntCT] - 1)* [Measures].[PV])/100) - 1)

Member [Measures].[PVC] as 
([Measures].[CPT1],Order(NonEmpty(STRTOSET(@State)*[Tb Main].[UID].[UID].ALLMEMBERS ,
[Measures].[CPT1]), [Measures].[CPT1],BASC).Item([Measures].[PVInt20]))

Select [Measures].[PVC] on columns, STRTOSET(@State) on rows from [POC 1];

查询在查询设计器中使用参数和整个唯一名称,即
[Tb Main].[State name].&[Wash DC]

尝试将状态参数查询更改为:

WITH
MEMBER [Measures].[ParamValue] as [Tb Main].[State Name].CurrentMember.UniqueName
SELECT { [Measures].[ParamValue] } ON COLUMNS, 
NonEmpty ([Tb Main].[State Name].[State Name].ALLMEMBERS, [Measures].[CPT1] ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [POC 1]

将ParamValue列用作状态参数的value属性。那么,即使有空格,下游查询也应该可以工作

填充状态参数下拉列表的查询是什么?参数值使用哪个字段?希望您使用MDX唯一名称作为参数值。下面是数据集查询:在列上选择非空{[Measures].[CPT1]},在[POC 1]的行上选择非空{([Tb Main].[State name].[State name].[State name].ALLMEMBERS)}维度属性成员\标题,成员\唯一\名称您好,谢谢您的回复,但我需要更多帮助,如果我使用[Measures].[ParamValue]作为参数数据集的可用值,那么在下拉列表中,我将获得[Tb Main].[State Name]和[Wash DC]等值这不利于向用户显示。谢谢Greg,我在将值字段设置为Param value并将标签设置为state name后,现在得到了它。很抱歉,我不能一次性理解它,但现在我得到了它,感谢您的努力。