Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 50761

Re: Power BI Embedded Row-Level Security for Multiple values of single attribute

$
0
0

Hello,

 

What I see as a solution to your problem is - 

1. Create a mapping table for Roles_Departments having columns - Role_Id & Department_Id.

2. As RLS, use the DAX - [Role_Id] = USERNAME()

3. From you C# code, pass Role_Id for USERNAME & not Department_Id

 

This way, if you develop a custom logic to find the right Role for the logged-in user, the data could easily be filtered by all the departments associated with that role.

 

Hope, this helps!

 

Thanks,

Vinay


Viewing all articles
Browse latest Browse all 50761

Latest Images

Trending Articles



Latest Images