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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
moniqueg
Frequent Visitor

Composite Model and RLS

Hello,

 

I have a composite model with heriachical RLS applied. The RLS works perfectly fine except when it comes to using data from the direct query table. I have mutliple tables that are all import and 1 single direct query table.

 

When using data from the direct query model in a table of data, it totals all values instead of just the values specific to the user viewing per the RLS.

 

For example, the user will be viewing data for their team. Each user within their team shows the correct number of items however the table total shows the total for all values, not just the values relevant to the user viewing. 

 

moniqueg_0-1706733842015.png

In this example, I am viewing as a particular user and you can see the count for each user does not equal the total sum at the bottom of the table.

 

Any ideas as to what is going on here? 

 

Thanks,

 

Monique

 

2 REPLIES 2
v-kongfanf-msft
Community Support
Community Support

Hi @moniqueg ,

 

Can you provide the specific formula corresponding to the work item created? As per your description, it is possible that the formula uses something like the all function, which clears the filter criteria for the user column.

 

Best Regards,
Adamk Kong

moniqueg
Frequent Visitor

Edit: User field comes from an import table while work items come from direct query. There is a user name field I can use in the direct query however the RLS does not apply to this at all - just shows all users irrespective of who is viewing. I tried created an inactive relationship between direct query table and RLS user table in conjunction with a measure using use relationship. This did not change the outcome.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.