This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
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:
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.:
When I tried to do so, I got the following error:
Best regards
Solved! Go to Solution.
No, you would need to still connect to all the data models, but you could use the RLS to control all their fact tables.
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:
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.
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.
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.
No, you would need to still connect to all the data models, but you could use the RLS to control all their fact tables.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |