<?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 How to get a parameter in a slicer? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-a-parameter-in-a-slicer/m-p/2214601#M33225</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a parameter in my Direct Query Dashboard, which can be used as input in "Data source settings" for the server name (see picture below). This works fine; within the Power Query Editor I can choose from a list of servers (from the parameter) and the Dashboard is updated directly with the corresponding data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However... I need to publish this Dashboard (Direct Query), and I want to have a slicer in which users themselves can choose with which server the connection is made. The question is, how to get this parameter in a slicer, or, when this isn't possible, how can this be bypassed so the user still can choose the server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SERVER_PBI.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/637630iAE8F3AF9A53DAB5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SERVER_PBI.jpg" alt="SERVER_PBI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 17:51:03 GMT</pubDate>
    <dc:creator>whu</dc:creator>
    <dc:date>2021-11-30T17:51:03Z</dc:date>
    <item>
      <title>How to get a parameter in a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-a-parameter-in-a-slicer/m-p/2214601#M33225</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a parameter in my Direct Query Dashboard, which can be used as input in "Data source settings" for the server name (see picture below). This works fine; within the Power Query Editor I can choose from a list of servers (from the parameter) and the Dashboard is updated directly with the corresponding data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However... I need to publish this Dashboard (Direct Query), and I want to have a slicer in which users themselves can choose with which server the connection is made. The question is, how to get this parameter in a slicer, or, when this isn't possible, how can this be bypassed so the user still can choose the server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SERVER_PBI.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/637630iAE8F3AF9A53DAB5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SERVER_PBI.jpg" alt="SERVER_PBI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-a-parameter-in-a-slicer/m-p/2214601#M33225</guid>
      <dc:creator>whu</dc:creator>
      <dc:date>2021-11-30T17:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a parameter in a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-a-parameter-in-a-slicer/m-p/2219008#M33270</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/321639"&gt;@whu&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For the parameterized report, you need to enter to data source setting to change the parameters then it can affect the data connections:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Using-the-Power-BI-Service-Parameters-to-change-connection/ba-p/392016" target="_self"&gt;Using the Power BI Service Parameters to change connection strings (To possibly change between Dev&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For your scenario, I'd like to suggest you take a look at the following link about preview feature dynamic M query parameters.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters" target="_blank"&gt;Dynamic M query parameters in Power BI Desktop (preview) - Power BI | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Notice: current this feature does not work for direct query mode data source, please use the import mode table instead.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The feature is only supported for M based data sources. The following DirectQuery sources are not supported:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;T-SQL based data sources: SQL Server, Azure SQL Database, Synapse SQL pools (such as Azure Synapse Analytics (formerly SQL Data Warehouse)), and Synapse SQL OnDemand pools&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Live connect data sources: Azure Analysis Services, SQL Server Analysis Services, Power BI Datasets&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Other unsupported data sources: Oracle, Teradata, and Relational SAP Hana, PostgreSQL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Partially supported through XMLA / TOM endpoint programmability: SAP BW and SAP Hana&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 01:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-a-parameter-in-a-slicer/m-p/2219008#M33270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-03T01:22:05Z</dc:date>
    </item>
  </channel>
</rss>

