我有2个事实表,一个销售交易事实和一个每日快照事实。快照的目的是查看特定促销的目标客户。 我想创建一个集来显示目标帐户,但没有交易。任何帮助表示赞赏。
这就是我的尝试,但并不是非常接近于正确的做法。我不希望该集显示一个度量,只显示一个度量列表。
create set [targeted] AS
Distinct ([Account].[Account].[Account],[Measures].[SnapshotMeasure]);
create set [transacted] AS
Distinct ([Account].[Account].[Account],[Measures].[SalesMeasure]);
create set [targeted no sales] as
EXCEPT([targeted],[transacted] );
答案 0 :(得分:0)
我假设您要将其添加到多维数据集脚本中。
可能类似以下内容:
CREATE SET [NameOfYourCube].[targeted] AS
Filter([Account].[Account].[Account], [Measures].[SnapshotMeasure] > 0)
CREATE SET [NameOfYourCube].[transacted] AS
Filter([Account].[Account].[Account], [Measures].[SalesMeasure] > 0)
CREATE SET [NameOfYourCube].[targeted no sales] AS
EXCEPT([targeted],[transacted])