<?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: Modify DAX for Field Parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2873738#M92822</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , As of now field parameters can filter slicers of another field parameter. You can check and vote for an existing idea : &lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;https://ideas.powerbi.com/ideas/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 04:17:54 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-10-31T04:17:54Z</dc:date>
    <item>
      <title>Modify DAX for Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2872826#M92782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have exisiting field parameter with slicer that works but I would to modify the dax so it will return values based on another field parameter slicer. However, I'm getting an error with the dax.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I'm not sure if my approach is correct but I would appreciate any help please &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="96558" data-lia-user-login="TheoC" class="lia-mention lia-mention-user"&gt;TheoC&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326025" data-lia-user-login="JoaoMarcelino" class="lia-mention lia-mention-user"&gt;JoaoMarcelino&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Comparative Scen3 (field param) = 
VAR Comparative_Scenario_USD =
{
    ("Budget", NAMEOF('KPI USD'[KPI MTD Budget USD]), 0),
    ("Last Year", NAMEOF('KPI USD'[KPI MTD LY USD]), 1),
    ("2019", NAMEOF('KPI USD'[KPI MTD 2019 USD]), 2),
    ("Forecast", NAMEOF('KPI USD'[KPI MTD Forecast USD]), 3)
}

VAR Comparative_Scenario_LOCAL =
{
    ("Budget", NAMEOF('KPI'[KPI MTD Budget]), 0),
    ("Last Year", NAMEOF('KPI'[KPI MTD LY]), 1),
    ("2019", NAMEOF('KPI'[KPI MTD 2019]), 2),
    ("Forecast", NAMEOF('KPI'[KPI MTD Forecast]), 3)
}

RETURN
SWITCH(
    SELECTEDVALUE(ParamCurrency[ParamCurrency]),
    "USD", Comparative_Scenario_USD,
    "LOCAL", Comparative_Scenario_LOCAL
)&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 19:56:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2872826#M92782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-30T19:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify DAX for Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2873738#M92822</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , As of now field parameters can filter slicers of another field parameter. You can check and vote for an existing idea : &lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;https://ideas.powerbi.com/ideas/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 04:17:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2873738#M92822</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-31T04:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify DAX for Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2873811#M92824</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;- thanks for the feedback. That's a shame. I guess the alternative options could be using bookmarks or creating a table for the slicer selection and then creating measures using selected value.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 05:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-for-Field-Parameters/m-p/2873811#M92824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-31T05:30:32Z</dc:date>
    </item>
  </channel>
</rss>

