I am new to MDX and for now it looks like some hell to me.
I have a measure called Sales KG
. It calculate sales amount based on table AData
where I have column named Data_Date
.
I need to get Sales KG
value for specified range of dates.
The problem is I can't understand how to specify that range. It doesn't look like simple <
and >
are works here.
I totally lost and don't have much to show, but this is what I tried:
select
[Sales KG] on Columns
from [Model]
where ([Format_TT].[Супермаркет], [Data_Date].&[20160101] : [Data_Date].&[20170101])
But it tells me that can't convert string "20160101" into date type. And probably this is not what I want. I want it to be single value for date range in single cell.
What to do?..