0

我可以将 ssas 2008 多维数据集上的计算成员的参数传递给 cognos 报表工作室吗?我知道如何在 Microsoft 报告服务中执行此操作,但不知道 Cognos Report Studio 10.1。我不知道计算成员应该采用的格式,也不知道如何让 Cognos 识别传递的任何参数。示例:假设我想传递下面的代码,显示前 25 个帐户,但相反,我想调整它以具有一个变量/参数,使我能够在运行时对其进行调整,以说出前 10 个帐户。这可能吗。我知道我可以在报表工作室本身中创建代码,但出于性能和可重用性的原因,我宁愿在多维数据集中进行。这是此特定示例的副本,谢谢!

           TOPCOUNT( [Instrument].[Account Name].[Account Name].members,
           25, [Measures].[Committed Amt])**strong text**
4

1 回答 1

2

If I understood you correctly, you can do it in the following way:
Drag a data item into the query and use the embeded parameter (?prmTopCount?):

topeCount([Instrument].[Account Name].[Account Name], 
?prmTopCount?, [Measures].[Committed Amt])

You can build a prompt page and define a textBox Prompt which uses existing prompt (prmTopCount).
I have also tried to write manual MDX in the report, but it looks it does not support macros embedded inside the manual written MDX.

于 2012-10-08T15:57:57.770 回答