在SSAS多维数据集中使用过程ASSP.GetCustomDrillthroughMDX
创建了一个钻取操作,以便用户可以查看更多详细信息。
除了突出显示的单元格 99.575(图1)外,此方法正常。对于此单元格,检索到以下错误:
钻取失败,因为SELECT标识的坐标 条款超出范围。
在服务器上运行的drillthorugh
MDX-Query是:
drillthrough select (
[Branch].[Branch DE].[All]
,[Branch Hierarchies].[Branch Hierarchy].[7789] --7789
--,[Branch Hierarchies].[PK Branch Hierarchy].[RHO ASL APAC]
,[Cost Category].[Account DE].[All]
,[Date].[Year].&[2016]
,[Documents].[Customer Number].[All]
,[Documents].[Document Currency].[All]
,[Documents].[Document Date].[All]
,[Documents].[Document Header].[All]
,[Documents].[Document Line].[All]
,[Documents].[Document No].[All]
,[Documents].[Document Type].[All]
,[Documents].[Entered By].[All]
,[Documents].[Entry Date].[All]
,[Documents].[Fiscal Period].[All]
,[Documents].[Item Text].[All]
,[Documents].[Partner Business Area].[All]
,[Documents].[Partner Segment].[All]
,[Documents].[Pk Id].[All]
,[Documents].[Reference].[All]
,[Documents].[Storno Doc No].[All]
,[Measures].[Amount]
) on 0
from [MIS Financials] return
NAME([$Date].[Date]) as [Date]
,NAME([$Documents].[Document No]) as [Document No]
,NAME([$Documents].[Document Line]) as [Document Line]
,NAME([$Documents].[Document Header]) as [Document Header]
,NAME([$Documents].[Document Date]) as [Document Date]
,NAME([$Documents].[Document Currency]) as [Document Currency]
,NAME([$Documents].[Document Type]) as [Document Type]
,NAME([$Documents].[Entry Date]) as [Entry Date]
,NAME([$Documents].[Entered By]) as [Entered By]
,NAME([$Documents].[Fiscal Period]) as [Fiscal Period]
,NAME([$Documents].[Item Text]) as [Item Text]
,NAME([$Documents].[Reference]) as [Reference]
,NAME([$Documents].[Storno Doc No]) as [Storno Doc No]
,NAME([$Customers].[Customer NO]) as [Customer No]
,NAME([$Customers].[Customer Name1]) as [Customer Name 1]
,NAME([$Documents].[Partner Business Area]) as [Partner Business Area]
,NAME([$Documents].[Partner Segment]) as [Partner Segment]
,NAME([$Customers].[Key Industry Sector]) as [Industry Sector Key]
,NAME([$Branch].[Branch DE]) as [Branch]
,NAME([$Branch].[Branch Number]) as [Branch No]
,NAME([$Scenario].[Scenario Type DEU]) as [Scenario Type DEU]
,NAME([$Cost Center].[Cost Center DE]) as [Cost Center]
,NAME([$Cost Category].[Account No]) as [Cost Category]
,[Financials].[Amount] as [Amount]
当我做了一些进一步的测试时,我发现第3行的查询存在问题:,[Branch Hierarchies].[Branch Hierarchy].[7789]
。在这里,如果我使用[7789]
更改值[ALL]
,则查询将运行正常。值[7789]
表示父子维度中RHO ASL APAC
的ID。
是否有人知道钻取中导致此错误的原因以及我们如何避免这种错误?
P.S。根据这篇文章也讨论了这个错误
Stackoverflow上的MDX DRILLTHROUGH Fails but select can be successfully executed。不同的是,在我的情况下,我不会使用任何子选择或同一维[Branch Hierarchies]
的多个成员来导致这种情况。
图1
更新:SSAS中钻取操作的定义