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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cortazzi
Frequent Visitor

RLS in a composite Data Model with two different datasets connected

Hi,

Hi everyone,

 

I've got 2 separate datasets connected via directquery: Stock Actual and Sales.

On the datasets via directquery there is no RLS.

In both datasets the column on which I would like to implement the RLS exists and it's called store_code.

 

Then, I've imported the table store_md (import mode) which contains info and dimensions on the granularity: store_code.

 

I connected the three tables on the column store_code.

 

cortazzi_0-1724754534198.png

 

I've tried to create roles on the store_masterdata but it doesn't work on service:

cortazzi_2-1724754734249.png

the store masterdata has been correctly filtered but the tables via directquery not.

 

Any idea what can be done here?

 

Thanks in advance.

1 ACCEPTED SOLUTION
cortazzi
Frequent Visitor

I solved this issue by creating a measure and using it in the object filter.

View solution in original post

2 REPLIES 2
cortazzi
Frequent Visitor

I solved this issue by creating a measure and using it in the object filter.

Anonymous
Not applicable

Hi @cortazzi ,

In the composite Model you have the shared dataset + the report datase

You need to define security as follow:

Shared Dataset  as  Viewer+Build

Report dataset as Viewer

Below is the link will help you:
Setting the right permissions for users of composite models - SQLBI

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.