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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.