Forum Discussion
Ben1981
9 months agoHelper III
RLS based on CONTAINSSTRING?
Hi, Is there a way with RLS to filter a column based on if a value is contained within a string? I have two tables setup, HR People and HR Hierarchy, no connected to each other but can be via ...
- 9 months ago
Hello Ben1981
try with this DAX code
In your RLS role definition (for table 'Dim HR Hierarchy')VAR _UserID =
MAXX(
FILTER('Dim HR People', 'Dim HR People'[Email] = USERPRINCIPALNAME()),
'Dim HR People'[ID Key]
)
RETURN
CONTAINSSTRING('Dim HR Hierarchy'[Path], _UserID)
If my response helped you, please consider clicking
Accept as Solution ✅ and giving it a Like 👍 – it helps others in the community too.
Thanks,
Connect with me on:
LinkedIn
v-pnaroju-msft
9 months agoCommunity Support
Hi Ben1981,
We kindly request you to provide sample data that clearly demonstrates your issue or query in a structured format (not as an image) to help us understand and resolve the matter. Please ensure that the data is relevant, free from any sensitive information, and directly related to the issue. Additionally, please share the expected outcome based on the given example.
Thank you.