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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RashmitaR
Helper IV
Helper IV

RLS using common user id


Hi , I am trying to create a report

User_idEmail idProject Idvalue
1Pras@abc.comP_0011000
2Pras@abc.comP_00220000
3Gop@abc.comP_00320000
4Gop@abc.comP_00415000

Here user 1 and 2 are logging into power bi using Pras@abc.com user id and user 3 and 4 are loggoin into power bi using Gop@abc.com user id .
but all the users are allocated to different project .
If i want to create a role where each user can only be able to have a look at its respective project value , Could someone please help me with the DAX that I should mention in the filters.

Or is there any other way to achieve this functionality?

1 REPLY 1
v-yuezhe-msft
Employee
Employee

Hi @RashmitaR

In your scenario, it is not possible to create a role to make each user to view his respective project value. When you make use of USERNAME() function within your dataset, Power BI will automatically filter the data depending on the username used to login to Power BI service account.

In other words, as the users log into Power BI Service using email id, they always get two project values. You would need to ensure that they use different email id to log into Power BI.

Thanks,
Lydia Zhang

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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