cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Preben Regular Visitor
Regular Visitor

RLS value to match value in row

Suppose this is my table called "People"

sbucountry.PNG

I want to set up a role that says "You can only see data about other people from the same country as yours".

Is there not a simple DAX for this?

[Country] = <the same>

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User IV
Super User IV

Re: RLS value to match value in row

You would need to use something like LOOKUPVALUE(...) = [Country] where your LOOKUPVALUE would use the Name to lookup the user's country.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

Community Support Team
Community Support Team

Re: RLS value to match value in row

@Preben 

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Row-level-security-to-see-organization-data-for-different-u...

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

View solution in original post

4 REPLIES 4
Super User IV
Super User IV

Re: RLS value to match value in row

You would need to use something like LOOKUPVALUE(...) = [Country] where your LOOKUPVALUE would use the Name to lookup the user's country.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

Super User IV
Super User IV

Re: RLS value to match value in row

You would need to use something like LOOKUPVALUE(...) = [Country] where your LOOKUPVALUE would use the Name to lookup the user's country.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Preben Regular Visitor
Regular Visitor

Re: RLS value to match value in row

The report has email and uses USERPRINCIPAL() extensively. Does that make it easier? 

Community Support Team
Community Support Team

Re: RLS value to match value in row

@Preben 

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Row-level-security-to-see-organization-data-for-different-u...

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

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors