Forum Discussion
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
| SO | Revenue |
| 50 | 1000 |
| 51 | 2000 |
| 52 | 3000 |
| 53 | 5000 |
Master table
| SO | SO emal id | SH | SH emal id |
| 50 | [email protected] | 50 | [email protected] |
| 51 | [email protected] | 50 | [email protected] |
| 52 | [email protected] | 53 | [email protected] |
| 53 | [email protected] | 53 | [email protected] |
let me know if Anybody have a answer .Thanks.
- Anonymous5 years ago
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
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.
1 Reply
- AnonymousNot applicable
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
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.