<?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: How to use DAX formula SELECTEDVALUE with Field Parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101439#M109043</link>
    <description>&lt;P&gt;Did you try to add a "calculate" in the var Lastyeardynamic:&lt;BR /&gt;Lastyeardynamic = calculate(max(DWH[year])) ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 13:00:35 GMT</pubDate>
    <dc:creator>andhiii079845</dc:creator>
    <dc:date>2023-02-27T13:00:35Z</dc:date>
    <item>
      <title>How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3100976#M109014</link>
      <description>&lt;P&gt;Dear Power BI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for your help as I am trying to use DAX formula SELECTEDVALUE based on field parameters, however it is not doable based on the following error message:&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;IF user selects between two value the (Amount USD &amp;amp; Amount LCL) the calculation should be changing based on that:&lt;BR /&gt;&lt;BR /&gt;DAX formula :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field Parameter:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visualization selection for Amount USD &amp;amp; Amount LCL:&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;P&gt;Would it be possible for someone to help how to change the DAX formula SELECTEDVALUE part to make it work?&lt;BR /&gt;&lt;BR /&gt;Thank you for your advice in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wishing you a wonderful date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&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>Mon, 27 Feb 2023 09:33:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3100976#M109014</guid>
      <dc:creator>AdamMetz23</dc:creator>
      <dc:date>2023-02-27T09:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3100996#M109016</link>
      <description>&lt;P&gt;One question: Why it is important to use field parameters instead of a regular table / calculated table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 09:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3100996#M109016</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-27T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101034#M109018</link>
      <description>&lt;P&gt;Thank you Andhi for your quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually the main reason for that is that this was the only way (based on my knowledge) how I could dynamically change the column chart visualization Y axis between amount usd and amount lcl based on the field parameter selection:&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;Is it inefficient to do so?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 09:53:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101034#M109018</guid>
      <dc:creator>AdamMetz23</dc:creator>
      <dc:date>2023-02-27T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101047#M109019</link>
      <description>&lt;P&gt;Can you perhaps upload a example file without sensitve datas?&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533336" target="_self"&gt;Other post to field parameters&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;It seems to be possible. Perhaps try first to access only to the field parameter value?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 10:04:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101047#M109019</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-27T10:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101401#M109037</link>
      <description>&lt;P&gt;What was the solution now in your case ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:31:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101401#M109037</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-27T12:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101415#M109040</link>
      <description>&lt;P&gt;I have added the year column values explicitly instead of using a MIN &amp;amp; MAX measure to find the first and last year in the year column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not 100% clear how it connects to the original issue to be honest but solved the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:41:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101415#M109040</guid>
      <dc:creator>AdamMetz23</dc:creator>
      <dc:date>2023-02-27T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101439#M109043</link>
      <description>&lt;P&gt;Did you try to add a "calculate" in the var Lastyeardynamic:&lt;BR /&gt;Lastyeardynamic = calculate(max(DWH[year])) ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 13:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101439#M109043</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-27T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DAX formula SELECTEDVALUE with Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101576#M109060</link>
      <description>&lt;P&gt;Oh thank you I have added calculate and it made the formula more dynamic. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:08:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-DAX-formula-SELECTEDVALUE-with-Field-Parameters/m-p/3101576#M109060</guid>
      <dc:creator>AdamMetz23</dc:creator>
      <dc:date>2023-02-27T14:08:44Z</dc:date>
    </item>
  </channel>
</rss>

