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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

RLS Not working

Hi ,

  what I'm trying to do,

i) If the sales officer(SO) looks at the report, they only show the data.

ii) Show sales officer data under sales Head(SH) if sales Head(SH) sees report.

 

I used this measure but not working.

Measure:

IF (
CALCULATE (
COUNTROWS ( 'Master table'),
FILTER ( 'Master table' , 'Master table'[SH email id]= USERPRINCIPALNAME() )
) > 0,[SH email id] = USERPRINCIPALNAME() ,[SO email id] = USERPRINCIPALNAME()
)

  

Relationship:many to one Relationship between transaction table[SO]  and Master table[SO]

Tables:

Transaction table

SORevenue
501000
512000
523000
535000

 

Master table

SOSO emal idSHSH emal id
50Sakthi@gmail.com50Sakthi@gmail.com
51Vel@gmail.com50Sakthi@gmail.com
52Arjun@gmail.com53mani@gmail.com
53mani@gmail.com53mani@gmail.com

 

let me know if Anybody have a answer .Thanks.

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

To my knowledge, if a user has access to a particular row of data, they can see all the columns of data for that row.

You secure individual rows of data but users can always see either the details or the summarized data.

 

If you publish your Power BI Desktop report to an app workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the app workspace settings.

You can make this change by logging in to app.powerbi.com (as a group admin), and using the left nav to choose the App Workspace (group) and then Edit Workspace.

This is described in the document: Row-level security (RLS) with Power BI

 

Using RLS with workspaces in Power BI.PNG

Best Regards,
Eyelyn Qin
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

1 REPLY 1
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

To my knowledge, if a user has access to a particular row of data, they can see all the columns of data for that row.

You secure individual rows of data but users can always see either the details or the summarized data.

 

If you publish your Power BI Desktop report to an app workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the app workspace settings.

You can make this change by logging in to app.powerbi.com (as a group admin), and using the left nav to choose the App Workspace (group) and then Edit Workspace.

This is described in the document: Row-level security (RLS) with Power BI

 

Using RLS with workspaces in Power BI.PNG

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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