Reply

RLS based on Category

Hello ,
I have employee data with different role , I want to restrict data based on Resource type
for example Employee (1) has resource type A and is location head can view only his data being a location head and related resource data fromsales  table 

can you please help 

Capture.PNG

 

7 REPLIES 7

I do have a Refrence Table , with USERNAME we are mapping it to Resource Type 

Needs to be USERPRINCIPALNAME.  their email address, basically.

@lbendlin  Can't we do it with employee id USERNAME()......?,
and Could you please help me out on dax how can I restrict data based on Type for specific People

For dynamic RLS you don't need anything else, but it must use USERPRINCIPALNAME, and your reference table must control the fact tables of the data model.

Okay and what would be my dax to filter the data as per specific category ?

There is no DAX filter, this is all controlled via the data model.

lbendlin
Super User
Super User

I assume you have a reference table in your data model that maps USERPRINCIPALNAME to resource type?

avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)