MDX Querry with different Date ranges for 2 measures for use in ss -
07-05-2006
, 04:22 AM
Dear all
I'm new to mdx and trying to create a querry to use in ssrs. I use this
querry to populate a dataset in SSRS that is used for a report which contains
a Table (Two descriptive columns, 3 measures columns)
My problem now is, that the requirement says that the measure columns should
have different time spans. I know how to apply one timespan to all of the
measures, but I do not know how to apply 2 timespans.
The querry looks something like this:
with
Member Trans as
'IIF(ISEMPTY([Measures].[T]),0,[Measures].[T])'
MEMBER Budget as
'IIF(ISEMPTY([Measures].[E]),0,[Measures].[E])'
MEMBER WaAu as
IIF(ISEMPTY([Measures].[W]),0,[Measures].[W])
SELECT
NON EMPTY { Trans, Budget, WaAu } ON COLUMNS,
NON EMPTY { ([Product].[ProductCategoryName].ALLMEMBERS *
[Product].[ProductGroupName].ALLMEMBERS
) } ON ROWS
FROM ( SELECT ( STRTOMEMBER(@From,constrained) :
STRTOMEMBER(@To,constrained)) ON COLUMNS
FROM [OdyFirstCube]))
Can you help me with this issue? Thanks in advance
Regards,
Marc |