2012-09-26 162 views
0

函数需要第一个参数的元组集表达式。使用了一个字符串或数字表达式。 我正在设计我的ssrs报告上的mdx查询。SSRS报告上的MDX查询错误

这里是我的MDX查询:

SELECT 
    NON EMPTY { [Measures].[Order Quantity], [Measures].[Discount Amount], [Measures].[Freight], [Measures].[Extended Amount] } ON COLUMNS, 
    NON EMPTY { ([Customer].[Customer Key].[Customer Key].ALLMEMBERS * [Currency].[Currency Key].[Currency Key].ALLMEMBERS * [Currency].[Currency Name].[Currency Name].ALLMEMBERS * [Customer].[Gender].[Gender].ALLMEMBERS) } ON ROWS 
FROM (
     SELECT (STRTOSET ('{" & Join(Parameters!CurrencyCurrencyKey.Value,",") & "}')) ON COLUMNS 
     FROM [AWDW] 
    ) 

任何想法?????

回答

0

我认为Join的调用不会返回正确的表达式。为了使您的查询有效,它应该返回类似于Currency Key的唯一名称。

我不知道,如果你要选择1个或几个货币但StrToSet的第一个参数必须有这样一个值:

"{'unique name of the currency'}" 

"{('unique name of the first currency') , ('unique name of the second currency')...}" 
+0

我需要通过多个perameters到我的mdx查询。我需要在这里使用加入...... –

+0

Benoit要求您查看CurrencyCurrencyKey的参数值。它只是关键值,还是Member_Unique_Name?它需要是Member_Unique_Name。 – Bill

+1

@ user1602996你能给我一个你的货币键的唯一名称的样本吗? – Benoit