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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
LocalBro
Regular Visitor

Filter reference table slicers with RLS

Hi

 

Dataset: (this is shorten down to the important columns)

 

User tableComment
Email adr RLS is filtering on this column based on logged in user email
Contact IDa unique key

 

User table have a "1 -> many" relationship with connection table

 

Connection tableComment
Contact IDThis is connected to user table
Organization number IDOne user can have access to multiple organizations. 1 row per organization per user.

 

Connection table have a "many -> 1" relationship with organization number table which is turned into bidirectional with check applied security filter

 

Organization number tableComment
Organization number IDThis is connected to connection table, a unique key
Organization number1 organization have 1 ID

 

Organization number table have 2 "1 -> many" relationship with Vendor and customer table. They both go the same direction. 

My dataset have 2 rows which each containing 1 facts table. This is where they splitt. 

 

Customer tablecommentVendor tablecomment
Customer IDa unique keyVendor IDa unique key
Organization numberThis is connected to Organization number table. No customers are sharing an organization numberOrganization numberThis is connected to Organization number table. No vendors are sharing an organization number

 

My customer table is connected to my Purchase order headers (fact table) with a 1 -> many relationship. 1 customer can have many Purchase orders. 

 

My vendor table is connected to my Sales order headers (fact table) with a 1 -> many relationship. 1 vendor can have many Sales orders. 

 

Purchase order headerscommentSales order headers comment
Purchase order IDa unique keySales order IDa unique key
Customer IDconnected to customer tableVendor IDconnected to vendor table
Ship IDOne order is in one shipment, but a shipment can contain many orders. Ship IDOne order is in one shipment, but a shipment can contain many orders. 
Date Date 
Status Status 

 

Each of my header tables have their own table that describes the order in detail. This is a 1 -> many relationship from header table to line table. The line table is describing down to each product in the order. 

 

Purchase order linescommentSales order linescomment
Purchase order IDThis is connected to sales order headers table. 1 order can have many lines. Sales order IDThis is connected to Purchase order headers table. 1 order can have many lines. 
Produkt IDThere exsits 1 row per product per order. Produkt IDThere exsits 1 row per product per order. 
Sales order ID Purchase order ID 

 

Each of my line table is in the end connected to a product table with a many -> 1 relationship. 

 

Product tablecomment
Produkt IDa unique key
Product name 

 

This report is mostly about giving the user an overview between the sales and purchases he does and comparing them, but the report is build up so that the purchases is following the sales. For each sales order there is a corresponding purchases order and they both have the same Ship ID. 

 

In my reports there is a few slicers on Ship-ID, date and status. These slicers comes from 2 reference table which both is build from my sales order headers table. 

 

SO Ship reference tableCommentConnected toRelationship
Ship IDThis is a unique ID, this is where my ship id slicer comes fromSales order headers1 -> many
  Purchase order headers1 -> many

 

Date and status is seperated in a second table

SO status/date reference tableCommentConnected toRelationship
Ship ID SO Ship reference tableMany -> 1 with biderectional security filter
StatusThis is where my date slicer comes from  
DateThis is where my status slicer comes from  
Vendor IDThis could be here if needed, but i cant connect this to Vendor table as it would be a 1 -> many relationship from vendor to this reference tabel. This would cause multiple ways to purchase order headers/lines from my organization table which is my RLS entry point.   

 

I can't have status and date in my SO Ship reference table because then this table won't have a unique ship IDs anymore. As Ship ID is not unique in my Sales/Purchases order headers tables. There is a many to many relationship between these 3 fields. 

 

So, finally to my problem. My RSL does not filter my slicers. i have tried a few different solutions but non is working. My most promising was creating a measure in my Ship ID reference table that would tell if the ship ID exsist in Purchase order headers after RLS has filtered out the rows that shouldnt be there, but never got it to work. 

 

Someone have an idea? i haven't found any similar problems so far on the internet. 

 

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @LocalBro ;

You could refer to this post.

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Power-BI-use-a-previous-date-measure-to-in-fu...

 

and what result what you want to output? if you show it with picture more better.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

This is my model

model.PNG

 

I have a few slicers buildt from the tabel that is circled. The 3 tables to the left is used for dynamic row security filter. Im out to filter those slicers down to the logged in users data, it wont do it now with this model. 

LocalBro
Regular Visitor

I have a test datamodel filled with dummy data ready to upload that shows the problem, but cant find where to do it. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.