I'm recently trying out using MDX query in Power BI to query information directly from SAP Business warehouse cube. I encountered an error message that I can't figure out how to solve. The error message is: "SAP Business Warehouse: Specify a value for variable Day Interval"
In the report, choosing date range is mandatory. If I click through using Power BI to SAP BW connector, one of the steps is like the screenshot below:
The day is in the Cube called [0CALDAY]
and is specified using [0CALDAY].[20101107]
However if I use MDX to query similar data using the code below
select {[Measures].[00O2THVIBBMJV8JIFLLW439K8]} on columns
from [0PT_MP01/Y_PT_TM_Q001_BOBJ]
where {[0CALDAY].[20101101]: [0CALDAY].[20101110]}
and click OK, I will receive the message says: "SAP Business Warehouse: Specify a value for variable Day Interval". My understanding of this is the way I'm choosing day interval is not recognized?
I've also tried to use &
in front of [20101101]
to make something like this: [0CALDAY].&[20101101]
(according to some of the introduction online), then I receive syntax error message.
Is there anything I can do with the query language? Do I need to convert the number into date type? I'm really new to MDX and Cube, any suggestions will be really appreciated.
Thanks