Complete the DAX expression to define a role that filters the 'Sales' table by 'Region'.
FILTER(Sales, Sales[Region] = [1])The role filter must compare the 'Region' column to a specific region name like "North".
Complete the DAX expression to filter the 'Sales' table for the current user's email in the 'SalespersonEmail' column.
FILTER(Sales, Sales[SalespersonEmail] = [1])USERPRINCIPALNAME() returns the current user's email, which is used to filter the 'SalespersonEmail' column.
Fix the error in the DAX expression that tries to filter 'Sales' by multiple roles using OR logic.
FILTER(Sales, [1](Sales[Region] = "East", Sales[Region] = "West"))
To filter rows where Region is either 'East' or 'West', use the OR function: OR(Sales[Region] = "East", Sales[Region] = "West").
Fill both blanks to create a DAX filter that allows access if the user is in either the 'Manager' or 'Sales' role.
FILTER(Users, [2](Users[Role] = [1], Users[Role] = "Sales"))
The filter checks if the role is 'Manager' OR 'Sales' to allow multiple roles access, using OR(Users[Role] = "Manager", Users[Role] = "Sales").
Fill the blanks to create a DAX expression that filters 'Sales' for users with 'Region' matching their principal name or if USERNAME() = 'Admin'.
FILTER(Sales, Sales[Region] = [1] [2] (USERNAME() = "Admin"))
The filter allows access if the sales region matches the user's principal name (Sales[Region] = USERPRINCIPALNAME()) or if the user is an Admin (USERNAME() = "Admin"), using || for OR logic.