Trying to calculate quartiles in MDX

前端 未结 1 1474
南旧
南旧 2021-01-26 14:26

My data looks like this:

ID                                   |PersonID  |CompanyID  |DateID  |Throughput |AmountType
33F467AC-F35B-4F24-A05B-FC35CF005981 |7             


        
1条回答
  •  情歌与酒
    2021-01-26 15:20

    Culprit is the following piece of code:

    SET [NonEmptyIds] AS
     NonEmpty(
          [ThroughputID].[ID].[id]
       *[ThroughputID].[ID].[Id].ALLMEMBERS
      ,
      {[Measures].[Throughput]} * [selection]
     )
    

    You can't use the same hierarchy more than once in the cross-join. Here you have used [ThroughputID].[ID] twice. Instead try the below:

    SET [NonEmptyIds] AS
     NonEmpty(
          [ThroughputID].[ID].[Id].ALLMEMBERS
      ,
      {[Measures].[Throughput]} * [selection]
     )
    

    0 讨论(0)
提交回复
热议问题