<?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 Re: Issue with SELECTEDVALUE and SWITCH in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516811#M135027</link>
    <description>&lt;P&gt;Haha I honestly spent ages trying to find the field parameter and didn't realise it was a server level setting to enable. I wondered why there was only numeric ones and that is why I had to go this route. Thanks heaps.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 02:30:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-06T02:30:41Z</dc:date>
    <item>
      <title>Issue with SELECTEDVALUE and SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516779#M135024</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I have a simple table (manual) in PBI that has 1 column and 3 values (Region, Segment, Market). With this table, I want to have a Slicer that will allow people to select 1 of the 3 values and use that value as a basis to select a column dynamically in the main Orders table. Here is the DAX code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dynamic Selection = 
VAR SelectedParameter = SELECTEDVALUE('Slicer'[Parameter])
RETURN
SWITCH(
    TRUE(),
    SelectedParameter = "Region", 'Orders'[Region],
    SelectedParameter = "Market", 'Orders'[Market],
    SelectedParameter = "Segment", 'Orders'[Segment]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no relationship between Orders and Slicer. I then have a chart with Dynamic Selection in the Legend to do the dynamic level of detail change. But, it resolves to blank no matter the selection I do.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help with this greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:02:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516779#M135024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-06T02:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SELECTEDVALUE and SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516800#M135025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculated columns are static, and normally only "processed" on dataset refresh. They cannot respond to filters applied in a report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, you can use the field parameters feature to select a particular column (or measure) to be used in a visual.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this example, you would create a field parameter containing the three columns Region, Market, &amp;amp; Segment. Then place the field parameter column in the "Legend" field well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post back if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516800#M135025</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-11-06T02:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SELECTEDVALUE and SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516811#M135027</link>
      <description>&lt;P&gt;Haha I honestly spent ages trying to find the field parameter and didn't realise it was a server level setting to enable. I wondered why there was only numeric ones and that is why I had to go this route. Thanks heaps.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SELECTEDVALUE-and-SWITCH/m-p/3516811#M135027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-06T02:30:41Z</dc:date>
    </item>
  </channel>
</rss>

