我需要在SSAS多维中创建动态组。我认为我应该使用“动态设置”。 我能够在MDX中创建一个查询,该查询返回我想要的内容:
WITH MEMBER [Sale Customer Quotation].[Sale Quote Number].[$0-$4k] AS ' Aggregate(Filter([Sale Customer Quotation].[Sale Quote Number].[All].children, [Measures].[SCQ Customer Net Amt] < 4000))'
MEMBER [Sale Customer Quotation].[Sale Quote Number].[$4k-$8k] AS ' Aggregate(Filter([Sale Customer Quotation].[Sale Quote Number].[All].children, [Measures].[SCQ Customer Net Amt] >= 4000 AND [Measures].[SCQ Customer Net Amt] < 8000))'
MEMBER [Sale Customer Quotation].[Sale Quote Number].[$8k-$12k] AS ' Aggregate(Filter([Sale Customer Quotation].[Sale Quote Number].[All].children, [Measures].[SCQ Customer Net Amt] >= 8000 AND [Measures].[SCQ Customer Net Amt] < 12000))'
MEMBER [Sale Customer Quotation].[Sale Quote Number].[$12k-$16k] AS ' Aggregate(Filter([Sale Customer Quotation].[Sale Quote Number].[All].children, [Measures].[SCQ Customer Net Amt] >= 12000 AND [Measures].[SCQ Customer Net Amt] < 16000))'
MEMBER [Sale Customer Quotation].[Sale Quote Number].[$16k+] AS ' Aggregate(Filter([Sale Customer Quotation].[Sale Quote Number].[All].children, [Measures].[SCQ Customer Net Amt] > 16000))'
SELECT NON EMPTY {[Measures].[SCQ Customer Net Amt] } ON COLUMNS
, {[Sale Customer Quotation].[Sale Quote Number].[$0-$4k],
[Sale Customer Quotation].[Sale Quote Number].[$4k-$8k],
[Sale Customer Quotation].[Sale Quote Number].[$8k-$12k],
[Sale Customer Quotation].[Sale Quote Number].[$12k-$16k],
[Sale Customer Quotation].[Sale Quote Number].[$16k+] } ON ROWS
FROM [pSaleCustomerQuotation]
支出看起来像:
但是我需要在多维数据集计算中创建一个“动态集”或其他内容,因此用户只需在Excel中拖动并使用它即可。
谢谢您的帮助!