Forum Discussion
Power BI Embedded Row-Level Security for Multiple values of single attribute
Anonymous zq RajeshAHCUSA
What you need to do is use CALCULATE to evaluate the expression for each row of the table, creating a row context for each row and filtering the data to match on a single value. I believe somthing like this would work:
='Table[DeptId]=
CALCULATE(
VALUES(Security_Table[DeptId])| ----> obtain list of values
SUMMARIZE(Security_Table|Security_Table[ADAccountName])| ----> grouped by the member
Security_Table[ADAccountName] = USERNAME() | ---> first filter matches the member to Directory
FILTER(Security_Table|Security_Table[DeptId] = EARLIER('Table[DeptId])) ------> Second Filter pulls value that matched the row
)
- Anonymous6 years agoNot applicable
Anonymous do you mean adding a new column for each, in this case, user with a 'CALCULATE' evaluation like the one you posted ?
- Anonymous6 years agoNot applicable
Hi Anonymous ,
You don't need a column to do this. You can use the code in the DAX Filter under the role manager and assign it to the table you're wanting to filter.
Thanks