<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RLS Value to Select the Semantic Model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4237560#M57782</link>
    <description>&lt;P&gt;Hi PowerBI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one embedded report that uses RLS on a very large semantic model. So I want to break it down into four&lt;SPAN&gt;&amp;nbsp;semantic models:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dataset_France&lt;/LI&gt;&lt;LI&gt;dataset_Nigeria&lt;/LI&gt;&lt;LI&gt;dataset_Vietnam&lt;/LI&gt;&lt;LI&gt;dataset_Canada&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With Dynamic Security (&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls#dynamic-security" target="_self"&gt;here&lt;/A&gt;), does anyone know if it's possible to select the semantic model according to the value of the username? For e.g.:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If [CountryRegionCode] = 'Nigeria', the report will use dataset_Nigeria.&lt;/LI&gt;&lt;LI&gt;If [CountryRegionCode] = 'Canada', the report will use dataset_Canada.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I tried to do so, I got the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fxs7576_02_0-1728588999929.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1181199iD3E4573B67BCBA52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fxs7576_02_0-1728588999929.png" alt="fxs7576_02_0-1728588999929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 19:43:20 GMT</pubDate>
    <dc:creator>fxs7576_02</dc:creator>
    <dc:date>2024-10-10T19:43:20Z</dc:date>
    <item>
      <title>RLS Value to Select the Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4237560#M57782</link>
      <description>&lt;P&gt;Hi PowerBI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one embedded report that uses RLS on a very large semantic model. So I want to break it down into four&lt;SPAN&gt;&amp;nbsp;semantic models:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dataset_France&lt;/LI&gt;&lt;LI&gt;dataset_Nigeria&lt;/LI&gt;&lt;LI&gt;dataset_Vietnam&lt;/LI&gt;&lt;LI&gt;dataset_Canada&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With Dynamic Security (&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls#dynamic-security" target="_self"&gt;here&lt;/A&gt;), does anyone know if it's possible to select the semantic model according to the value of the username? For e.g.:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If [CountryRegionCode] = 'Nigeria', the report will use dataset_Nigeria.&lt;/LI&gt;&lt;LI&gt;If [CountryRegionCode] = 'Canada', the report will use dataset_Canada.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I tried to do so, I got the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fxs7576_02_0-1728588999929.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1181199iD3E4573B67BCBA52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fxs7576_02_0-1728588999929.png" alt="fxs7576_02_0-1728588999929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 19:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4237560#M57782</guid>
      <dc:creator>fxs7576_02</dc:creator>
      <dc:date>2024-10-10T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: RLS Value to Select the Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4237663#M57785</link>
      <description>&lt;P&gt;No, you would need to still connect to all the data models, but you could use the RLS to control all their fact tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 21:52:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4237663#M57785</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-10T21:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: RLS Value to Select the Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4240358#M57817</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/765878"&gt;@fxs7576_02&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Could you please let us know if lbendlin's&amp;nbsp; response resolved your issue? If it did, kindly accept it as the solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Firstly, I concur with lbendlin&amp;nbsp;’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.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;P&lt;/SPAN&gt;&lt;SPAN&gt;lease refer to the relevant documentation for further details&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data" target="_blank"&gt;&lt;SPAN&gt;Data refresh in Power BI - Power BI | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters" target="_blank"&gt;&lt;SPAN&gt;Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;" lang="zh-CN"&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1728871863270.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182352i926B6239C5FC6A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1728871863270.png" alt="vlinyulumsft_0-1728871863270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;" lang="zh-CN"&gt;&lt;SPAN&gt;As demonstrated&lt;/SPAN&gt;&lt;SPAN&gt;, 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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;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.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1728871863272.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182353i2A48665258C182C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1728871863272.png" alt="vlinyulumsft_1-1728871863272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;Moreover, dynamic Row-Level Security (RLS) for many-to-many relationships is currently supported&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN&gt;P&lt;/SPAN&gt;&lt;SPAN&gt;lease refer to the relevant documentation for further details&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Dynamic-RLS-By-Group-and-Many-to-Many/td-p/4049056" target="_blank"&gt;&lt;SPAN&gt;Solved: Dynamic RLS By Group and Many to Many - Microsoft Fabric Community&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1728871948614.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182358i7D65B69C4D256FA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1728871948614.png" alt="vlinyulumsft_2-1728871948614.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;4.P&lt;/SPAN&gt;&lt;SPAN&gt;lease refer to the relevant documentation for further details&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-composite-models" target="_blank"&gt;&lt;SPAN&gt;Use composite models in Power BI Desktop - Power BI | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new ideas, you are welcome to contact us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 02:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-Value-to-Select-the-Semantic-Model/m-p/4240358#M57817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-14T02:13:12Z</dc:date>
    </item>
  </channel>
</rss>

