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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
showy
Helper II
Helper II

RLS with multiple conditions

showy_0-1737022808472.png

Hello
I have the following problem.
I want to create RLS with multiple conditions.

Now I have a report with 2 pages. One evaluates customers and the other contacts. I cannot add the two dimensions to one.

I have now created the two RLS conditions in one role, but my pages are not filtered and are empty.

1 ACCEPTED SOLUTION

@showy , This is because RLS is doing and for both and you are not getting data. We can not change RLS based on Page, we can do based on user.

 

On quick solution can be

In this can you can create a two measures based on userprinipal and use them as visual level filter and hide filter pane from user. and that can give filter based on table you wnat on each page

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

View solution in original post

4 REPLIES 4
Sahir_Maharaj
Super User
Super User

Hello @showy,

 

Can you please try the following:

 

1. Set RLS on Dim_Contact Table and Dim_Customer Table

[Email] = USERPRINCIPALNAME()

 

2. Ensure that Dim_Contact is linked to Fact_1 via ContactCode and Dim_Customer is linked to Fact_2 via CustomerCode.

 

3. Since the two dimensions (Dim_Contact and Dim_Customer) are unrelated, confirm there is no direct relationship between them in your data model.

 

Hope this helps.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Hello Sahir,

yes all the 3 point you are mentioning are correct im my model. But if i go to Show AS and select the user and role i get no data

@showy , This is because RLS is doing and for both and you are not getting data. We can not change RLS based on Page, we can do based on user.

 

On quick solution can be

In this can you can create a two measures based on userprinipal and use them as visual level filter and hide filter pane from user. and that can give filter based on table you wnat on each page

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
G_Kiranmayi
Regular Visitor

Hello,
Try to follow this video from 11:41 seconds. https://www.youtube.com/watch?v=r5XCpeQxXl4&ab_channel=DataWolfs
Might solve your problem.

Hope it helps 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors