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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Balhemkan
Helper III
Helper III

Dynamic RLS not working for two columns

Hi Team,

 

I have created dynamic RLS on powerbi

 

In table i have 3 columns

 

Type      Country sales

B2B       India     10

B2C       India   20

B2B       Germany 10

B2C       Germany 20

 

Dynamic RLS table I have created like this

 

Type      Country User

B2B       India     A@xyz.com

B2C       India   b@xyz.com

B2B       Germany c@xyz.com

B2C       Germany d@xyz.com

 

Because of many to many i have created bridge table for Country

 

Country

India

Germany

 

 

I have created role saying Dynamic = userprincipalname()

 

when I test the role for a@xyz.com he can see only "India" data but he is seeing for both B2B and B2C

we don’t want him to see for B2C we need to show him only for B2B India.

 

Could you please help me who to achieve this.

 

1 ACCEPTED SOLUTION

@amitchandak - Thanks a lot Amit. You are really genius. When ever I need help, all my questions I got answers from you. 

View solution in original post

3 REPLIES 3
Balhemkan
Helper III
Helper III

@Balhemkan , The above two should join in a combined key

 

new column in both tables

 

Key = [Type] & "-" & [Country]

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak - Thanks a lot Amit. You are really genius. When ever I need help, all my questions I got answers from you. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors