WizzoP
asked on
MDX Date Range in Excel
Hi Everyone,
I'm using the CUBE functions in Excel to query my SSAS cube.
I have a CUBEVALUE function and I'm trying to get the value of a measure for a specific date range, like this:-
=CUBEVALUE("jago","({[date ].[date time].&[2009-03-12T00:00:0 0]:[date]. [date time].&[2009-03-13T00:00:0 0]})","[Me asures].[C onsignment Count]")
but all I get is N/A.
However, if I change the second date to be the same as the first, the query returns the correct answer for 2009-03-12.
Any Ideas? I'm quite new to MDX, so I guess I've made a newbie error!
I'm using the CUBE functions in Excel to query my SSAS cube.
I have a CUBEVALUE function and I'm trying to get the value of a measure for a specific date range, like this:-
=CUBEVALUE("jago","({[date
but all I get is N/A.
However, if I change the second date to be the same as the first, the query returns the correct answer for 2009-03-12.
Any Ideas? I'm quite new to MDX, so I guess I've made a newbie error!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the response, although it wasn't the one I was hoping for!
I suspect that this requirement wont go away, and that I'll be looking for a solution again soon.
I suspect that this requirement wont go away, and that I'll be looking for a solution again soon.
ASKER
with member [Date].[date time].[wibble] as
aggregate({[date].[date time].&[2009-03-11T00:00:0
select [date].[date time].[wibble] on columns,
[measures].[consignment count] on rows
from [MyCube]
but I can't find a way to get an aggregate function into the Cubevalue parameters in Excel.