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
Date 从SSAS运行的SSRS-具有空值的多个日期筛选器_Date_Reporting Services_Parameters_Null_Ssas - Fatal编程技术网

Date 从SSAS运行的SSRS-具有空值的多个日期筛选器

Date 从SSAS运行的SSRS-具有空值的多个日期筛选器,date,reporting-services,parameters,null,ssas,Date,Reporting Services,Parameters,Null,Ssas,我从SSAS多维数据集创建了一个SSRS报告,报告上有2个日期过滤器以及其他过滤器,我对日期参数有一些问题 如果日期范围参数设置为null,则表示用户只想在日期范围1上进行筛选,则报告不会返回任何数据, 如果两个日期范围都已设置,则返回的数据包括所选日期范围之外的行 我使用了查询设计器来创建代码,但我修改了日期参数表达式以传递日期mdx字符串 选择非空{[Measures].[Total Amount Debit], [措施][假日价值],[措施][信贷总额], 列上的[Measures].[C

我从SSAS多维数据集创建了一个SSRS报告,报告上有2个日期过滤器以及其他过滤器,我对日期参数有一些问题

如果日期范围参数设置为null,则表示用户只想在日期范围1上进行筛选,则报告不会返回任何数据, 如果两个日期范围都已设置,则返回的数据包括所选日期范围之外的行 我使用了查询设计器来创建代码,但我修改了日期参数表达式以传递日期mdx字符串

选择非空{[Measures].[Total Amount Debit], [措施][假日价值],[措施][信贷总额], 列上的[Measures].[Canx本地金额],[Measures].[Canx金额]}, 非空{[Holiday ID].[Hierarchy].[Holiday ID]。所有成员* [假日ID].[姓氏].[姓氏].所有成员* [Departure_date].[Hierarchy].[Start date]。所有成员* [补偿类型].[补偿类型].[补偿 类型].所有成员*[供应商扣减].[供应商扣减].[供应商 扣减].ALLMEMBERS*[组件类型].[层次结构].[供应商 名称].ALLMEMBERS*[使用的凭证].[使用的凭证].[凭证] 已使用].ALLMEMBERS*[task_created].[Hierarchy].[created].ALLMEMBERS* [Booked_Date]。[Booked Date]。[Booked Date]。所有成员*[CR_任务 ID].[Task ID].[Task ID].ALLMEMBERS}维度属性 行上的成员标题、成员唯一名称

从选择STRTOMEMBER@FromBookedDateBookedDate : STRTOMEMBER@ToBookedDateBookedDate在“选择”中的列上 STRTOMEMBER@FromtaskcreatedHierarchy : STRTOMEMBER@TotaskcreatedHierarchy在“选择”中的列上 STRTOSET@CompensationTypesCompensationType,约束在列上 从选择STRTOSET@CompoMadeCompensationmade,受制于 选择中的列STRTOSET@SupplierDeductionSupplierdeduction, 受限于[客户关系]中的列

IIF在哪里STRTOSET@CompoMadeCompensationmade,约束。计数= 1.STRTOSET@CompoMadeCompensationmade受限 [Compo_Make].[Compensation Make].currentmember单元格属性 值、后颜色、前颜色、格式化值、格式化字符串、, 字体名称、字体大小、字体标志

有人能帮我处理日期参数中的空值吗


谢谢

在数据集参数中,右键单击数据集->选择属性->选择属性,对于参数@FromBookedDateBookedDate,请使用如下表达式:

请记住:上述表达式结果必须与多维数据集级别的属性匹配。因为可能是多维数据集可能有类似20140131的数据值

=IIF(isnothing(Parameters!Your_FromBookedDateBookedDate_Report_Parameter.value),”[depparture_date].[ BookedDate].[ALL]”, ”[depparture_date].[ BookedDate].[“&
Parameters!Your_FromBookedDateBookedDate_Report_Parameter.value &”]” )