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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

data filtering on user login

I have a table where list of users are present with facility name next to them,

each email/user can have multiple facility with them
User data table :

EmailFacility
xyz@abc.comA1
xyz@abc.comA2
xyz@abc.comA3
hello@abc.comA1


Data table:

DataFacility
1111A1
2222A2
3333A3
4444A1
5555F1
6666C1
7777D1
8888Y1
9999Z4



when xyz@abc.com views the report he should be able to view only data with A1 ,A2, A3 in second table.

similarly hello@abc.com should see the records in data table only with A1 facility data


is this use case achievable ?

1 ACCEPTED SOLUTION
6 REPLIES 6
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use dynamic rls :https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

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

 

Best Regards,

Dedmon Dai

pranit828
Community Champion
Community Champion

Hi @Anonymous 

 

I would use the USERNAME() function to get the logged in username and create a table with single row and column using this function

Now I will trim both output of USERNAME() data and [Email] in data User data to create a connection.

 

After Connection is created Only data for the logged in user will be visible.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

@amitchandak 

Can you briefly explain how to do the relation and achive this?

Hi @Anonymous ,

 

Just create many to many relationship between two table and add role [Email] = userprincipalname() in user table:

 

Capture2.PNG

 

Then publish it to service. Assign users to Power BI Security:

 

Capture5.PNG

 

Last share the report with the user, he will see the data belongs to him:

 

Capture3.PNG

 

 

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

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

You need to use RLS, stright forward to set, take a look at the following links. 

 

https://www.youtube.com/watch?v=MxU_FYSSnYU

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls

Helpful resources

Announcements
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.