2012-09-26 159 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