I have a dimension, 'Organisation'. The }Clients dimension has a 'Department' attribute. Every value of 'Department' matches an element or consolidation in the 'Organisation' dimension. I want to filter the 'Organisation' dimension to just the value of the 'Department' attribute for the current TM1 user.
I have adapted the code posted by declanr in the linked thread to be as follows, but for some reason I'm getting a syntax error at or near the = sign:
Code: Select all
{Filter(
{[Organisation].members},
[Organisation] = StrToMember ( "[}Clients].[" + UserName + "]" ).[Department]
)
}
Edit: The code
Code: Select all
{StrToMember ( "[}Clients].[" + UserName + "]" )}