Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
LinhNguyen
Helper II
Helper II

Role level security based on excel input

Hi,

 

I'm trying to apply role level security and we have an excel sheet with filter values that another department manage.

 

Is there any way I can apply role level security based on that excel sheet? 

for example, is there a way I can apply the country filter for each of these people automatically so that when their access changes in the excel sheet, I don't need to change it manually in pbix then upload it?

 

Name             email                   country

person A         A@abc.com        China, Japan

person B         B@abc.com        US, UK, Mexico

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @LinhNguyen 

Yes, you could.

You could import the excel sheet into power bi, then in the edit queries, split "country" column by "," .

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Now selected "Name" and "email" columns and Unpivot other columns

2.JPG3.JPG

Then create a relationship with fact table by Value column.

 

Now you could set RLS as below:

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multipl...

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi  @LinhNguyen 

Yes, you could.

You could import the excel sheet into power bi, then in the edit queries, split "country" column by "," .

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Now selected "Name" and "email" columns and Unpivot other columns

2.JPG3.JPG

Then create a relationship with fact table by Value column.

 

Now you could set RLS as below:

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multipl...

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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