CASE
WHEN
(
[Date].[Hierarchy].CurrentMember
,[Measures].[Billing Reporting CFS - Total Amount EUR]
)
+ 0
= 0
THEN
CASE
WHEN
(
ParallelPeriod
(
[Date].[Hierarchy].[Month]
,1
,[Date].[Hierarchy].CurrentMember
)
,[Measures].[Billing Reporting CFS - Total Amount EUR]
)
> 0.01
THEN 1
ELSE 0
END
ELSE 0
END
代码如下,当那个月的总销售额 - 实际销售额为0如果上个月的总销售额与本月的金额不同则为1.但是我希望1改变实际的金额是改变了我怎么会这样做? 提前谢谢。
修改
如果值大于0.01,那么我想看看实际值,我该怎么做?
答案 0 :(得分:0)
CASE
WHEN
(
[Date].[Hierarchy].CurrentMember
,[Measures].[Billing Reporting CFS - Total Amount EUR]
)
+ 0
= 0
THEN
CASE
WHEN
(
ParallelPeriod
(
[Date].[Hierarchy].[Month]
,1
,[Date].[Hierarchy].CurrentMember
)
,[Measures].[Billing Reporting CFS - Total Amount EUR]
)
> 0.01
THEN ParallelPeriod([Date].[Hierarchy].[Month],1,[Date].Hierarchy].CurrentMember),[Measures].[Billing Reporting CFS - Total Amount EUR]
ELSE 0
END
ELSE 0
END
答案是