//for a particular date and day of week
select [measures].[countOfSchedule] on 0,
non empty
([Dim Date].[Date].[2019-04-09],[Dim Date].[DayOfWeek].[2],[Dim Date].[Hour].[Hour])
on 1
from
[YourCube]
//Returns the day 2 of each week, in a date range
select [measures].[countOfSchedule] on 0,
non empty
({[Dim Date].[Date].[2019-03-01]:[Dim Date].[Date].[2019-04-01]},
[Dim Date].[DayOfWeek].[2],[Dim Date].[Hour].[Hour])
on 1
from
[YourCube]
Обновить пример для предложения между в MDX
with member
measures.startdate
as
CDate([DimStartdate].[Date].currentmember.name)
member measures.enddate
as
CDate([DimEnddate].[Date].currentmember.name)
select
{[Measures].[Internet Sales Amount], measures.startdate,measures.enddate }
on columns,
filter
(([DimStartdate].[Date].[2018/08/20]:[DimStartdate].[Date].[2018/12/20],
[DimEnddate] [Дата] [2018/08/20]:.... [DimEnddate] [дата] [2018/12/20]),
CDate ("2018/9/5")> measure.startdate и CDate ("2018/10/5")