Yes, you can implement row-level security (RLS) in Power BI using DAX with substring matching via the USERNAME() function and SEARCH().
Example DAX RLS Filter Rule
Assume you want to match part of the username to values in the [RegionKey] column:
SEARCH([RegionKey], USERNAME(), 1, 0) > 0
-
USERNAME() returns the full UPN (e.g., user@domain.com).
-
SEARCH() checks if [RegionKey] appears anywhere in the username.
-
> 0 ensures a match; 0 means not found.