Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 41 | |
| 32 | |
| 24 |