Complete the code to define a role filter for the 'Region' column.
FILTER('Sales', 'Sales'[Region] = [1])
The role filter uses the exact region name as a string. Here, "South" is the correct filter value.
Complete the DAX expression to create a calculated table for RLS testing.
TestTable = FILTER(ALL('Sales'), 'Sales'[Country] = [1])
The calculated table filters all sales data to only include rows where the Country is "USA".
Fix the error in the DAX expression for role filter.
FILTER('Sales', 'Sales'[Year] [1] 2023)
In DAX, the correct operator for 'greater than or equal to' is >=, not => or ==.
Fill both blanks to create a DAX role filter that limits data to the current user and year.
FILTER('Sales', 'Sales'[UserEmail] = USERPRINCIPALNAME() && 'Sales'[Year] [1] [2])
The filter checks that the UserEmail matches the logged-in user and the Year equals 2024.
Fill all three blanks to create a DAX measure that counts sales filtered by user and region.
SalesCount = CALCULATE(COUNTROWS('Sales'), FILTER('Sales', 'Sales'[UserEmail] = [1] && 'Sales'[Region] = [2] && 'Sales'[Year] [3] 2023))
This measure counts rows where the user email matches the logged-in user, the region is "East", and the year is 2023.