我是MDX Querying的新手。我试图为后续查询创建一个行号,但是对于我的生活却迷失了......
SELECT
NON EMPTY
{
[Measures].[Bench], [Measures].[Act]
} ON COLUMNS,
NON EMPTY
{
([dim1].[Attr Period].[Attr Period].ALLMEMBERS )
}
DIMENSION PROPERTIES
MEMBER_CAPTION,
MEMBER_VALUE,
MEMBER_UNIQUE_NAME
ON ROWS
FROM
[Cubex]
任何人都可以帮我添加行号吗? 现在我得到:
ATTR PERIOD bench act
2016_q1 $10,000.00 $11,000.00
2016_q2 $10,000.00 $11,000.00
2016_q3 $10,000.00 $11,000.00
2016_q4 $10,000.00 $11,000.00
2017_q1 $10,000.00 $11,000.00
2017_q2 $10,000.00 $11,000.00
2017_q3 $10,000.00 $11,000.00
2017_q4 $10,000.00 $11,000.00

我想:
row ATTR PERIOD bench act
1 2016_q1 $10,000.00 $11,000.00
2 2016_q2 $10,000.00 $11,000.00
3 2016_q3 $10,000.00 $11,000.00
4 2016_q4 $10,000.00 $11,000.00
5 2017_q1 $10,000.00 $11,000.00
6 2017_q2 $10,000.00 $11,000.00
7 2017_q3 $10,000.00 $11,000.00
8 2017_q4 $10,000.00 $11,000.00

谢谢大家!
答案 0 :(得分:0)
我曾尝试使用MDX自行向脚本添加行号,但未找到解决方案。
MDX几乎总是输入客户端,例如SSRS,最好使用客户端的功能添加行号。