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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
fxs7576_02
Helper I
Helper I

RLS Value to Select the Semantic Model

Hi PowerBI Community,

 

I have one embedded report that uses RLS on a very large semantic model. So I want to break it down into four semantic models:

  • dataset_France
  • dataset_Nigeria
  • dataset_Vietnam
  • dataset_Canada

With Dynamic Security (here), does anyone know if it's possible to select the semantic model according to the value of the username? For e.g.:

  • If [CountryRegionCode] = 'Nigeria', the report will use dataset_Nigeria.
  • If [CountryRegionCode] = 'Canada', the report will use dataset_Canada.

When I tried to do so, I got the following error:

fxs7576_02_0-1728588999929.png

 

 

 

Best regards

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

No, you would need to still connect to all the data models, but you could use the RLS to control all their fact tables. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from lbendlin , please allow me to provide another insight:

Hi, @fxs7576_02 

Could you please let us know if lbendlin's  response resolved your issue? If it did, kindly accept it as the solution.

1.Firstly, I concur with lbendlin ’s viewpoint. Power BI does not support the dynamic switching of datasets within the same report. While it is possible to use parameters to dynamically change data sources in Power Query, this typically occurs during the data loading phase rather than allowing for dynamic dataset switching at runtime.
Please refer to the relevant documentation for further details:

Data refresh in Power BI - Power BI | Microsoft Learn
Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

 

Therefore, I recommend connecting your reports to various semantic models to construct a composite semantic model. Below are the data sources supported by semantic models:

vlinyulumsft_0-1728871863270.png

As demonstrated, Power BI enables the creation of composite models, allowing you to combine multiple data sources, including DirectQuery and imported data. You can use DirectQuery in Power BI Desktop to connect to other Power BI datasets or Azure Analysis Services, thereby merging multiple semantic models into a single report.

 

2.Secondly, when merging models, you can establish relationships between tables as usual. Even if these tables originate from different data sources, Power BI permits the creation of relationships, which are treated as many-to-many relationships.
 

vlinyulumsft_1-1728871863272.png

Moreover, dynamic Row-Level Security (RLS) for many-to-many relationships is currently supported. Please refer to the relevant documentation for further details:

Solved: Dynamic RLS By Group and Many to Many - Microsoft Fabric Community

 

3.Lastly, it’s important to note that the owner of a composite model must have Build permissions on the semantic models used as sources, so that other users can access these models on behalf of the owner.

vlinyulumsft_2-1728871948614.png

4.Please refer to the relevant documentation for further details:

Use composite models in Power BI Desktop - Power BI | Microsoft Learn 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

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

lbendlin
Super User
Super User

No, you would need to still connect to all the data models, but you could use the RLS to control all their fact tables. 

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.