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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
lakshmi9228
Helper III
Helper III

401 error

displaying 401 error while using RLS in power BI and struggling from yesterday by different ways.

1 ACCEPTED SOLUTION

The screenshots titled as visuals is basically the 'Table' visuals that you see in the 'Visualizations' pane on the right on the PBI Desktop, so you can create these visuals irrespective of using Direct Query or Not. The secondary RLS table I was referring to is a manual table that you will create and maintain and will be the source of the second visual which will basically be the Column you want the restriction set on.

View solution in original post

26 REPLIES 26

How do we do that?

I dint get the point "column adjacent to the first visual and have row level on that second visual. " 

This is what I came up with, you will have to change things obviosuly based on your requirement and also this is just a starting point and the only way I thought you can achieve this, you will have to break the column that needs the restriction upon and apply RLS on that column and make sure no relationship is defined between these two tables else the RLS will trickle to the other table as well.

 

Not a perfect solution but I think this should be a good starting point.

Visual 1 will NOT have the column you want restriction onVisual 1 will NOT have the column you want restriction onDefine RLS on the secondary table that contains the restricted columnDefine RLS on the secondary table that contains the restricted columnDummy Data for secondary table containing the supposed restricted columnDummy Data for secondary table containing the supposed restricted columnRelationship between bothRelationship between both

I am doing as direct query by using a view from SQL, how can I do this visuals at that time?

The screenshots titled as visuals is basically the 'Table' visuals that you see in the 'Visualizations' pane on the right on the PBI Desktop, so you can create these visuals irrespective of using Direct Query or Not. The secondary RLS table I was referring to is a manual table that you will create and maintain and will be the source of the second visual which will basically be the Column you want the restriction set on.

OrderIDOrderDetailIdCustomerIDCustomerEmailOrderStatus
335126017163712[email protected]Completed
3351360172233638[email protected]Completed
33520603090063[email protected]Completed
3353260301233660[email protected]Completed
3353260302233660[email protected]Completed
335686018233685[email protected]Completed

 

I am sorry, I can do this.
Please let me know if I can restrict the email address column

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.