一切永远都是一切
似乎您需要一个新的all,它是where子句中选择的3个成员的聚合。
可以使用with子句创建allcustom成员:
WITH
SET LocationSet AS
{ [Location].[Entity Location ID].[12280],
[Location].[Entity Location ID].[14067],
[Location].[Entity Location ID].[15092]}
MEMBER Location].[Entity Location ID].[All].ALLcustom AS
AGGREGATE ( LocationSet )
SET [Locations] AS
{LocationSet,
[Location].[Entity Location ID].[All].ALLcustom
}
SELECT { [Measures].[Work Order Count Housekeeping Per Sq Ft],
[Measures].[Work Order Count],
[Measures].[House Keeping Square Footage]} ON 0,
[Locations] ON 1
FROM [Work Order]
WHERE ( { [Department].[Department Name].[Housekeeping]},
{ [Event Start Dates].[Date Key].[20160705] : [Event Start Dates].[Date Key].[20180705] },
{ [Owner Entity].[Entity ID].[12279], [Owner Entity].[Entity ID].[12280], [Owner Entity].[Entity ID].[14067], [Owner Entity].[Entity ID].[15092]},
{ [Work Order Days Open].[Days Open].[1] : [Work Order Days Open].[Days Open].[250] },
{ [Work Order Days Overdue].[Days Overdue].[1] : [Work Order Days Overdue].[Days Overdue].[250] } )