Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to create a filter for Row Level Security to check if the team contains the value "HR". We have multiple HR teams, so to ensure I capture all HR teams, I wanted to write a DAX script to say contains.
At present I can do this on a single team using the DAX below-
[Team]<>"ME HR Shared Services"
However ideally I would like it to be something like-
[Team] Not(Contain("HR")
Any ideas?
Thanks
Andy
Solved! Go to Solution.
try FIND("HR", [Team], 1, -1) = -1 (to exclude any team name that contains 'HR')
or FIND("HR", [Team], 1, -1) > -1 (to only allow where the team contains "HR")
try FIND("HR", [Team], 1, -1) = -1 (to exclude any team name that contains 'HR')
or FIND("HR", [Team], 1, -1) > -1 (to only allow where the team contains "HR")
Fantastic, that works exactly! Thank you.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |