i´m trying to switch from standard permission handling based on leave level (dedicated cost center) like this
NonEmpty (
[cost center].[cost center].Members,
(
StrToMember ("[user].[user].[" + UserName () + "]"),
[Measures].[CostCenterGranted]
)
)
to a usage of cost center hierarchy.
Example
Level 1 Expenses World
Level 2 Expenses Europe
Level 3 Expenses Germany
Level 3 Expenses France
Level 4 Expenses CostCenter 1 - Germany
Level 4 Expenses CostCenter 2 - Germany
Level 4 Expenses CostCenter 3 - France
...
Instead of define per user per costcenter an entry in the bridge table, i want to have only one entry for example cost center node Germany.
This should grant access to all CostCenter below Node Germany
I tried something like this
NonEmpty (
descendants(
[cost center].[cost center group].Members ,,leaves ),
(
StrToMember ("[user].[user].[" + UserName () + "]"),
[Measures].[CostCenterGranted]
)
)
But this didn´t worked.
I do appreciate any ideas.