eo
MIS
- Apr 3, 2003
- 809
Hi,
I have a measure I want to shown ONLY at a certain scope. But cant seem to get this to work. The measure aggregation type is set to None, as to show nulls when analysed normally.
But in MDX the measure is set to aggregation using a scope (which specifies the ONLY intersection where the user shoudl see something.
1) Aggregation for the measure [ed02_d_mh_flag_lhntarget] set to None
2) A new calculated measure created
3) The new calculated measure defined at the relevant scope with an aggregation function
But I get NULLS even when intersecting the new calculated measure with the hierarchies defined in the scope.
EO
Hertfordshire, England
I have a measure I want to shown ONLY at a certain scope. But cant seem to get this to work. The measure aggregation type is set to None, as to show nulls when analysed normally.
But in MDX the measure is set to aggregation using a scope (which specifies the ONLY intersection where the user shoudl see something.
1) Aggregation for the measure [ed02_d_mh_flag_lhntarget] set to None
2) A new calculated measure created
Code:
CREATE MEMBER CURRENTCUBE.[Measures].[ed02_d_mh_flag_target]
AS
NULL,
VISIBLE = 1 , DISPLAY_FOLDER = 'Targets' , ASSOCIATED_MEASURE_GROUP = 'FactCombined';
3) The new calculated measure defined at the relevant scope with an aggregation function
Code:
SCOPE ([Gen_Hospital].[Hierarchy],[Gen_Date].[Hierarchy]);
[Measures].[ed02_d_mh_flag_target]
= sum({[Gen_Hospital].[Hierarchy].members,[Gen_Date].[Hierarchy].members},[Measures].[ed02_d_mh_flag_lhntarget]);
END SCOPE;
But I get NULLS even when intersecting the new calculated measure with the hierarchies defined in the scope.
EO
Hertfordshire, England