5

I'm having an issue concerning a calculated member that calculates the difference between two calculated members. that's how my measures looks like in SSAS Browser :

Phase    Measure 1       Measure 2
 P1         50              30
 P2         123             49
 P3         14              69

I created a calculated member as Calculated Member 1 -Calculated Member 2 But when I using a filter with two different Phases I get a blank values. For instance From P1 : 50 - From P2 49 I get a blank value. Phase is a dimension attribute. I'm using Power BI and I user a filter over Phase for each Measure.

MDX Calculations so far :

CREATE MEMBER CURRENTCUBE.[Measures].[Measure 1]
AS ([Indicateur].[LEVEL5].&[R522],[Measures].[Montant]), 
FORMAT_STRING = "# ##0,00;-# ##0,00", 
VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Fact DAF1';


CREATE MEMBER CURRENTCUBE.[Measures].[Measure 2]
AS ([Indicateur].[LEVEL5].&[R500],[Measures].[Montant]), 
FORMAT_STRING = "# ##0,00;-# ##0,00", 
VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Fact DAF1'; 

Difference : [Measures].[Measure 1] - [Measures].[Measure 2]

How to solve this ?

El houcine bougarfaoui
  • 35,805
  • 9
  • 37
  • 37

0 Answers0