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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
sima_ue031
Helper I
Helper I

Dynamic RLS with multiple conditions

Hello, 

 

i need a help, please.

 

I have table for roles. This table name is Roles_Divizija_TEST and data inside is :

sima_ue031_0-1707647333916.png

In this table a have column Divizija, which have in second row multiple values which this user can see. 

 

After, i have a table DivizijaKupci and relationship between DivizijaKupci and Roles_Divizija_Test on DivizijaKupci.[Top Divizija]=Roles_Divizija_TEST.Divizija.

sima_ue031_1-1707647425779.png

 

And last table is Kupci who contain a list of values of Customers. 
And have ralationship between DivizijaKupci.[Top Divizija] = Kupci.[Top Divizija].

here is my model : 

sima_ue031_2-1707647560066.png


How i can see in roles for example Z_Broj = Z0560 for customers (Kupci) where [Top Divizija] in ("TD.DRVO","TD.INSTALACIJE").

sima_ue031_0-1707647725312.png

 


Thanks in advice



5 REPLIES 5
sima_ue031
Helper I
Helper I

My model is on prem, and i have tabular model in background. 

Is possible that one user can be in two roles in onprem model?

Anonymous
Not applicable

Hi @sima_ue031 ,

Yes it is.

Best Regards,
Dino Tao

How? Can you help me?

Anonymous
Not applicable

Hi @sima_ue031 ,

Can you say what database you are using for your tabular model? And the connection schema you are using in Power BI Desktop? Different databases and different connection schemas create RLS in different ways.

Best Regards,
Dino Tao

Anonymous
Not applicable

Hi @sima_ue031 ,

First of all, depending on what your RLS screenshot in Power BI Desktop shows, you may need more code to implement Dynamic RLS, which you can refer to this document:
Dynamic Row Level Security with Manager Level Access in Power BI - RADACAD
Also, once you have set up Dynamic RLS correctly, you will need to publish the report to Power BI Service and enter who you want to view it with in Security in the Semantic model.

vjunyantmsft_2-1707701347726.png

vjunyantmsft_0-1707701305351.png
Dynamic Row Level Security with Power BI Made Simple - RADACAD

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

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.