gpt4 book ai didi

MDX 错误 "Hierarchy already appears in the Axis0 axis"

转载 作者:行者123 更新时间:2023-12-04 03:12:28 28 4
gpt4 key购买 nike

在以下 MDX 查询中

SELECT 
{
[EffectiveDate].[Period].[All].CHILDREN,
[EffectiveDate].[Period].[All]
} ON COLUMNS,
NON EMPTY {
[Account].[Hierarchy].[Account Type].&[Assets].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Assets],
[Account].[Hierarchy].[Account Type].&[Liabilities].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Liabilities],
[Account].[Hierarchy].[Account Type].&[Equity].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Equity],
[Account].[Hierarchy].[Account Type].&[Revenue].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Revenue],
[Account].[Hierarchy].[Account Type].&[Expenses].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Expenses]
} ON ROWS
FROM [JEMDA]
WHERE CrossJoin(
{
[Measures].[Amount]
},
{
[Source].[Source].[[Blank]]]
},
{
[EffectiveDate].[Period].&[5-Dec],
[EffectiveDate].[Period].&[5-Nov],
[EffectiveDate].[Period].&[5-Oct],
[EffectiveDate].[Period].&[6-Jan]
})

它报告错误:

The Period hierarchy already appears in the Axis0 axis.



你能告诉我如何解决这个问题吗?谢谢!

最佳答案

您不能在列和切片器上使用 Period 层次结构。

您可以像这样重写您的查询:

SELECT 
{
[EffectiveDate].[Period].[All].CHILDREN,
[EffectiveDate].[Period].[All]
} ON COLUMNS,
NON EMPTY
{
[Account].[Hierarchy].[Account Type].&[Assets].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Assets],
[Account].[Hierarchy].[Account Type].&[Liabilities].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Liabilities],
[Account].[Hierarchy].[Account Type].&[Equity].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Equity],
[Account].[Hierarchy].[Account Type].&[Revenue].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Revenue],
[Account].[Hierarchy].[Account Type].&[Expenses].CHILDREN,
[Account].[Hierarchy].[Account Type].&[Expenses]
} ON ROWS
FROM
(
SELECT {
[EffectiveDate].[Period].&[5-Dec],
[EffectiveDate].[Period].&[5-Nov],
[EffectiveDate].[Period].&[5-Oct],
[EffectiveDate].[Period].&[6-Jan]
} ON 0
FROM [JEMDA]
)
WHERE
(
[Measures].[Amount],
[Source].[Source].[[Blank]]
)

关于MDX 错误 "Hierarchy already appears in the Axis0 axis",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12964203/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com