I am trying to create a Calculated Member on a Microsoft Analysis Services Cube.
There is an existing Dimension [Projects][Project Number - Name]
which has members along the line of "12345 - Project X". I need to extract the project number only ("12345").
I initially assumed it would be as simple as LEFT(Projects].[Project Number - Name],5)
, but this yields a null
response.
Even if i just repeat the dimension as is [Projects].[Project Number - Name]
, I get a null
.
I've tried [Projects].[Project Number - Name].Value, [Projects].[Project Number - Name].Members
and a host of other ideas, but I am (as you can probably see) shooting in the dark.
I am primarily trying to get this working in Tableau (needs an MDX expression, not full query), but have also tried the Calculated Member functionality in MS Excel Power Pivot, which yields exactly the same answer (null
) - which suggests that my MDX is questionable.