1

在 MDX 查询中,我在 SSRS 报告中使用 with case 语句。它没有返回所需的结果。[Facility Market]它应该根据参数的选择进行 过滤Territory

with member [Dim Facility].[Facility Market].[Facility Market] as
case  [Dim North Texas Sales].[North Texas Rural Sales Territory].currentmember

when   [Dim North Texas Sales].[North Texas Rural Sales Territory].&[NTXSalesRuralEast] then [Dim Facility].[Facility Market].&[OKLAHOMA] 

end

select......

我想根据参数选择更改设施市场维度的值并根据该参数过滤数据集

4

2 回答 2

0

Case 语句仅适用于标量值。

你应该使用这样的表达式:

IIf([Dim North Texas Sales].[North Texas Rural Sales Territory].CurrentMember IS [Dim North Texas Sales].[North Texas Rural Sales Territory].&[NTXSalesRuralEast],
[Dim Facility].[Facility Market].&[OKLAHOMA],
...)
于 2013-02-11T22:03:40.937 回答
0
with member [Dim Facility].[Facility Market].[Facility Market] as
case  

when  [Dim North Texas Sales].[North Texas Rural Sales Territory].currentmember IS [Dim North Texas Sales].[North Texas Rural Sales Territory].&[NTXSalesRuralEast] then [Dim Facility].[Facility Market].&[OKLAHOMA] 

end

select......
于 2014-03-06T00:56:49.723 回答