Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssas MDX查询按前N名广告商产生收入_Ssas_Mdx - Fatal编程技术网

Ssas MDX查询按前N名广告商产生收入

Ssas MDX查询按前N名广告商产生收入,ssas,mdx,Ssas,Mdx,我需要创建一个报告使用SSRS2008,将显示收入前10名的广告商。我在management studio中编写了MDX查询,如下所示: Select [Measures].[Value] on 0, non empty generate([Dim Industry].[SK Industry ID], topcount([Dim Advertiser Branch].[Advertiser], [Measures].[Value],bdesc),10) on 1 from FuseCube

我需要创建一个报告使用SSRS2008,将显示收入前10名的广告商。我在management studio中编写了MDX查询,如下所示:

Select [Measures].[Value] on 0,
non empty
generate([Dim Industry].[SK Industry ID],
topcount([Dim Advertiser Branch].[Advertiser],
[Measures].[Value],bdesc),10)
on 1
from FuseCube
我收到一个分析错误,说明:

Query (5, 20) An expression was expected for the function argument and no expression   
was detected.
我的目标是按价值(又名收入)报告前10名广告商及其相关分支和行业。剩下的排名广告商应该进入“其他”类别,这样我就可以计算出总价值


我应该如何重新构造上述MDX查询以生成所需的结果?建议将上述查询创建为命名集,因为它将被重复使用?

TOPCOUNT语法不正确:

topcount([Dim Advertiser Branch].[Advertiser], [Measures].[Value],bdesc),10)
Vs


TOPCOUNT语法不正确:

topcount([Dim Advertiser Branch].[Advertiser], [Measures].[Value],bdesc),10)
Vs