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
Optimusprime_25
Resolver I
Resolver I

Dynamic RLS based on multiple conditions in multiple tables

Hi Team,

 

We have a requirement where we have to dynamically restrict the data based on user's unit and country.

Please find below tables which we have

User Details Table

IDCOUNTRYUNITREGIONUser_ID
1AlgeriaABCNAEMP1@123.com
2ArgentinaABCNAEMP1@123.com
3AustraliaABCNAEMP1@123.com
4DenmarkXYZAPACEMP2@123.com
5HungaryXYZAPACEMP2@123.com
6South KoreaXYZNAEMP2@123.com

Country Table 

COUNTRY
Algeria
Argentina
Australia
Denmark
Hungary
South Korea

Unit Table

UNIT
ABC
XYZ

Main Table

UNITCOUNTRYREGIONCOL1COL2COL3COL4COL5
ABCAlgeriaNA     
ABCArgentinaNA     
ABCAustraliaNA     
XYZDenmarkAPAC     
XYZHungaryAPAC     
XYZSouth KoreaNA     

With the help of Dynamic RLS we have to restrict the Main table by making use of USERPRINCIPALNAME and also we have to restrict user's country and unit as well in the report.

 

Thanks in advance.

4 REPLIES 4
Optimusprime_25
Resolver I
Resolver I

Hello @v-yinliw-msft ,

 

When EMP1 access the report then he should be able to see the data from the country and the unit in which he has access.

 

 

In above countries we can have data of Unit XYZ but EMP1 should be able to see the data of Unit ABC only from the Algeria, Argentina, Australia countries.

 

Similarly when EMP2 access the report then he should be able to see the data from the country and the unit in which he has access.

 

In above countries we can have data of Unit ABC but EMP2 should be able to see the data of Unit XYZ only from the Denmark,Hungary,South Korea countries.

 

I hope now you will undertand the outcome of this requirement

 

Thanks.

v-yinliw-msft
Community Support
Community Support

Hi @Optimusprime_25 ,

 

Could you please show me what your desired result looks like?

 

Best Regards,

Community Support Team _Yinliw

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

 

 Hello @v-yinliw-msft 

 

EMP1 should be able to see the data in which country and unit he has access

Similarly EMP2 should be able to see the data in which country and unit he has access.

 

All countries contains both ABC and XYZ unit data, but access should be restricted on country and unit as well.

 

Thanks

Hello @v-yinliw-msft 

 

I am unable to send the response due to invalid HTML

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.