Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm building a PBI Report (using PBI Premium) and want to embed it to my sharepoint site. The report will have parameter for an employee but I want the report data to only be viewable to the employee's data whos viewing it on the site. How do I tie the employee parameter to sharepoint current viewer ?
Solved! Go to Solution.
Hey @Anonymous ,
actually you do it the other way around, you check who is the user that is viewing the report with USERPRINCIPLENAME and then either show everything or just specific content. Check the following article on how to do that:
Dynamic Row Level Security with Profiles and Users in Power BI : Many-to-Many Relationship - RADACAD
Hey @Anonymous ,
as Sharepoint is also part of Office365 it won't change much for you.
You can check the current user in the report with the function USERPRINCIPALNAME() and then use Row Level Security to only show the information he is allowed to see.
Thanks @selimovd this is helpful. Question - can you use this function more than once? For example, if the manager is viewing PBI, it will display all their employees.
Hey @Anonymous ,
actually you do it the other way around, you check who is the user that is viewing the report with USERPRINCIPLENAME and then either show everything or just specific content. Check the following article on how to do that:
Dynamic Row Level Security with Profiles and Users in Power BI : Many-to-Many Relationship - RADACAD
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |