原始查询我没有下面显示的[Row Axis] SET,它有效,但有'重复'排名值
有人建议我移动行轴,但现在而不是“重复等级值”我只是#Error显示
我的RANK功能出了什么问题?
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]
);