Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Personnel table
| id_user | user | status | store | |
| 1 | jonathan32 | [email protected] | Directeur des ventes | Toulouse |
| 2 | maxgrant | [email protected] | Chef de store | Cannes |
| 3 | lberry | [email protected] | Vendeur | Metz |
| 4 | arnoldsamantha | [email protected] | Vendeur | Le Havre |
| 5 | ijohnson | [email protected] | Vendeur | Nantes |
| 6 | leahsmith | [email protected] | Chef de store | Saint-Paul |
| 7 | derrickchung | [email protected] | Vendeur | Créteil |
| 8 | robertholloway | [email protected] | Vendeur | Roubaix |
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?
Solved! Go to Solution.
I finaly found the solution
thanks
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 26 | |
| 20 | |
| 18 | |
| 17 |