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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
sidyahmet
Frequent Visitor

Row level security with multiple profil

sidyahmet_0-1701880164760.png

Personnel table

 

id_useruseremailstatusstore
1jonathan32jonathan32@bi-ready.comDirecteur des ventesToulouse
2maxgrantmaxgrant@bi-ready.comChef de storeCannes
3lberrylberry@bi-ready.comVendeurMetz
4arnoldsamanthaarnoldsamantha@bi-ready.comVendeurLe Havre
5ijohnsonijohnson@bi-ready.comVendeurNantes
6leahsmithleahsmith@bi-ready.comChef de storeSaint-Paul
7derrickchungderrickchung@bi-ready.comVendeurCréteil
8roberthollowayrobertholloway@bi-ready.comVendeurRoubaix


status colonne have three profile "Directeur des ventes","Chef de store"and "Vendeur".

I need to create a dynamic role in power bi desktop to filter data by email and status using Userprincipalname().
- User with status Directeur des ventes, can show all data any restriction with this user
- User witht status Chef de store can only see data associated with their store
- User with status Vendeur can only see row with only data.
I beguin doing this role  formula in dax role Email=Userprincipalname() 
How can I improve the formula to account for the cases mentioned above?


1 ACCEPTED SOLUTION
sidyahmet
Frequent Visitor

I finaly found the solution
thanks

View solution in original post

1 REPLY 1
sidyahmet
Frequent Visitor

I finaly found the solution
thanks

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.