Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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.
I assume you have a reference table in your data model that maps USERPRINCIPALNAME to resource type?
User | Count |
---|---|
3 | |
3 | |
2 | |
2 | |
1 |
User | Count |
---|---|
8 | |
4 | |
4 | |
3 | |
3 |