问题描述
我刚刚开始使用 MDX,并为 Oracle Smart View 编写了一个基本的 MDX 查询。然而,有些值为空并返回为#Missing。这是正确的,因为它们从未被使用过。
但是我已经设法过滤掉了空行,这很好,但现在我还想用 0 填充 #Missing。
我试图弄乱 IIF 和计算的度量,但我无法理解它。
SELECT
NON EMPTY Descendants ([2022],20,Leaves) ON COLUMNS,NON EMPTY Descendants ([All Account Values]) ON ROWS
WHERE ([Actual],[XXX Ledger],[All Entity Values],[CRP22],[All Project Values],[All Budget Values],[All Intercompany Values],[All Spare Values],[Period Activity],[GBP],[Base],[Entered])
从这里尝试代码
with member [Measures].[count-x] as
IIF( isEmpty( ([Measures].[Count],[All Account Values].currentMember) ),( [Measures].[Count],[All Account Values].currentMember )
)
SELECT
[Measures].[count-x] ON 0,[All Account Values] on 1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)