计算互联网销售总额(AdventureWorks 数据)MDX

Calculating total Amount of Internet Sales (AdventureWorks data) MDX

如何计算 "FactInternetSales" table 中所选 DATES 层次结构成员的销售总数?

(
[Order Date].[DATES].CURRENTMEMBER, 
COUNT(DISTINCT([Fact Internet Sales].[Sales Order Number].[Sales Order Number]
)

这是我目前拥有的,但它不起作用:/

尝试用额外的大括号在外面计数以指示一组元组:

COUNT(
  {  
    [Order Date].[DATES].CURRENTMEMBER
    *
    [Fact Internet Sales].[Sales Order Number].[Sales Order Number]
  }
)
with set abc as
EXISTS([Fact Internet Sales].[Sales Order Number].[Sales Order Number], 
[Order Date].[DATES].CURRENTMEMBER,
"Fact Internet Sales"
)

member [Measures].[Count]
AS Count(Distinct(abc))

SELECT  [Measures].[Count] on 0
from [YourCube]
WHERE Order Date].[DATES].&[01/01/2015] --Some random value for slicer