Sql server MDX:显示联系的排名,即使数据值不同

Sql server MDX:显示联系的排名,即使数据值不同,sql-server,ssas,mdx,Sql Server,Ssas,Mdx,我的原始查询没有下面显示的[Row Axis]集,它工作正常,但有“重复”的排名值 有人建议我移动行轴,但现在我得到的不是“重复的秩值”,而是“错误显示” 我的秩函数有什么问题 WITH SET [Row Axis] AS /*NON EMPTY */ ( Generate ( [PortfolioBenchmarks] ,TopCount ( ( [Por

我的原始查询没有下面显示的[Row Axis]集,它工作正常,但有“重复”的排名值

有人建议我移动行轴,但现在我得到的不是“重复的秩值”,而是“错误显示”

我的秩函数有什么问题

WITH 
  SET [Row Axis] AS
  /*NON EMPTY */
    (
      Generate
      (
        [PortfolioBenchmarks]
       ,TopCount
        (
            (
              [Portfolio].[Portfolio Name].CurrentMember
             ,[Portfolio Benchmark].[Benchmark Name].CurrentMember
            )
          * 
            [Factors]
         ,10
         ,Abs([Measures].[FormattedBarraoutput])
        )
      ) 
    )


  SET [Portfolios] AS 
    {
      [Portfolio].[Portfolio Name].&[thingy one]
     ,[Portfolio].[Portfolio Name].&[thingy two]
     ,[Portfolio].[Portfolio Name].&[another thingy]
     ,[Portfolio].[Portfolio Name].&[all these get passed in as params anyhoo]
     ,[Portfolio].[Portfolio Name].&[one more for luck]
    } 
  SET [PortfolioBenchmarks] AS 
    {
      Filter
      (
          [Portfolios]
        * 
          [Portfolio Benchmark].[Benchmark Name].Children
       ,(NOT 
          IsEmpty([Measures].[Barra Relative Result Percentage]))
      )
    } 
  SET [Factors] AS 
    {
        (
          [Barra Scenario].[Barra Scenario Name].&[Eff Active Weight (%)]
         ,[Barra Factor].[Factor Type].&[GICSIndustry]
        )
      * 
        [Barra Factor].[Factor Value].Children
    } 

  MEMBER [Measures].[FormattedBarraoutput] AS 
    IIF
    (
      IsEmpty([Measures].[Barra Relative Result Percentage])
     ,NULL
     ,[Measures].[Barra Relative Result Percentage]
    ) 
   MEMBER [Measures].[Ranking] AS
   RANK  ([Row Axis].CurrentMember,[Portfolios], [Measures].[FormattedBarraoutput])

SELECT 
  {[Measures].[FormattedBarraoutput],[Measures].[Ranking]} ON COLUMNS
 ,[Row Axis] ON ROWS
FROM [wobbly_woo]
WHERE 
  (
    [Time].[TimeKey].&[20120131]
  );


您能提供一些关于查询输出的数据吗?哪些数据是重复的?根据排名的使用情况,考虑复制的唯一值是[Measures].[FormattedBarraoutput]