0

Can someone please help me out understand what am I doing wrong? I have the following structure of my CUBE:

enter image description here

And I`m creating the following calculated member in MDX in Visual Studio:

CREATE MEMBER CURRENTCUBE.[Measures].[Current_State]

AS EXISTS([DWH Dim Work Item Current].[State].[State].Members,[DWH Dim Work Item Current].[Title].Currentmember).Item(0).Name,

VISIBLE = 1;

But for some reason I get only the first value (i.e. "Active") for every row in Excel:

enter image description here

Can someone please tell me what I`m doing wrong and how I should fix it?

Thank you in advance!

Lena Meer
  • 79
  • 9
  • 1
    The title of the first column in Excel is Project. Which attribute and dimension is that from? If you change the PivotTable to put `[DWH Dim Work Item Current].[Title]` on rows instead of Project does it work? – GregGalloway Jun 04 '18 at 08:24

1 Answers1

0

Does EXISTING work any better?

CREATE MEMBER CURRENTCUBE.[Measures].[Current_State]

  AS EXISTING([DWH Dim Work Item Current].[State].[State].MEMBERS).ITEM(0).NAME,

VISIBLE = 1; 
whytheq
  • 34,466
  • 65
  • 172
  • 267