<?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: Is it possible to use the selected Field Parameter in a DAX formula? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533526#M71124</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your replies,&lt;/P&gt;&lt;P&gt;I'm already using dynamic measures and calculation groups, but since Field Parameters allow to select a measure, it would be great if we could grab that selected measure in DAX to reuse it.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 13:31:21 GMT</pubDate>
    <dc:creator>charles_g</dc:creator>
    <dc:date>2022-05-23T13:31:21Z</dc:date>
    <item>
      <title>Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533336#M71108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the new Field Parameters feature shipped in the latest May 22 version of Power B, and I need to use the selected measure in other calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My (simplified) use case is as follows:&lt;/P&gt;&lt;P&gt;I have different calculations for Revenue : inc. taxes, excl. taxes...&lt;/P&gt;&lt;P&gt;I let the user select one of them with a slicer based on a Field Parameter.&lt;/P&gt;&lt;P&gt;The report is updated with the selected measure wherever Revenue is displayed.&lt;/P&gt;&lt;P&gt;But I would also like to update all the measures that are based on Revenue like Profit for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using SELECTEDVALUE() to grab the measure, but this only returns the name of the measure as a string.&lt;/P&gt;&lt;P&gt;SELECTEDMEASURE doesn't work either, it returns blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 12:18:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533336#M71108</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2022-05-23T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533430#M71113</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;You can use multiple measures in field parameters. You alos can combine measures and fields in same table. Here is an example of multiple measures. One other thing is you can put a slicer like Year to chane values of your field parameter results. The image below is one example. I've been unable to use the table created in any simple table function like COUNTROWS. You could look at calculation groups as an alternative.&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;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 12:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533430#M71113</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-23T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533440#M71114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301585" data-lia-user-login="charles_g" class="lia-mention lia-mention-user"&gt;charles_g&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would suggest you to look at Calculation Groups and Dynamic measures in TABULAR EDITOR&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 12:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533440#M71114</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2022-05-23T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533526#M71124</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your replies,&lt;/P&gt;&lt;P&gt;I'm already using dynamic measures and calculation groups, but since Field Parameters allow to select a measure, it would be great if we could grab that selected measure in DAX to reuse it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 13:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533526#M71124</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2022-05-23T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533656#M71127</link>
      <description>&lt;P&gt;Definitely. I hope I answered your question satisfactorily! Thanks..&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 14:22:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2533656#M71127</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-23T14:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2546874#M71955</link>
      <description>&lt;P&gt;Here's the best solution I found based on your suggestions which is pretty close to what I wanted to achieve. I created a new measure whose value is conditional on the selected field parameter. I can then calculate other measures based on this value.&lt;/P&gt;&lt;P&gt;It is&amp;nbsp; important to make sure that a field parameter is in the filter context anytime a measure based on Revenue is used, otherwise it returns no value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Revenue =&lt;BR /&gt;    SWITCH(&lt;BR /&gt;        SELECTEDVALUE(Revenue[Revenue Fields]),&lt;BR /&gt;        "'Key mesaures'[Revenue with taxes]", [Revenue with taxes],&lt;BR /&gt;        "'Key measures'[Revenue without taxes]", [Revenue without taxes]&lt;BR /&gt;    )&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field parameter table looks like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Revenue&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Revenue Fields&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Revenue Order&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Revenue with taxes&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;'Key measures'[Revenue with taxes]&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;0&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Revenue without taxes&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;'Key measures'[Revenue without taxes]&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 07:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2546874#M71955</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2022-05-30T07:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2606892#M75495</link>
      <description>&lt;P&gt;Thank you sooo much for this solution!! very helpful!!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:39:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/2606892#M75495</guid>
      <dc:creator>jessica-ko</dc:creator>
      <dc:date>2022-06-28T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3383617#M127483</link>
      <description>&lt;P&gt;Where should you create this measure (like in which table)? Everywhere I've tried to make it, it doesn't recognize the columns in the 3rd and 5th fields of the SWITCH function ([Revenue with taxes], [Revenue without taxes] in your example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then, does this allow a user to change what calculation is being used in the view? I have a very similar goal where I want the user to be able to change the denominator of a fraction in a caluclated measure between two columns&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 19:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3383617#M127483</guid>
      <dc:creator>jbarnard2</dc:creator>
      <dc:date>2023-08-16T19:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3456978#M131783</link>
      <description>&lt;P&gt;Hi Charles&lt;/P&gt;&lt;P&gt;I am trying to achieve the same thing you describe so I have created a new measure exactly as you have detailed but I get an error message that says "Function SWITCH does not support comparing values of type Text with vallues of type number.&amp;nbsp; Whenever I try to convert the data type from text to whole number I get another error. Any ideas? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 04:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3456978#M131783</guid>
      <dc:creator>NMEG</dc:creator>
      <dc:date>2023-10-03T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3457499#M131803</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602985" data-lia-user-login="NMEG" class="lia-mention lia-mention-user"&gt;NMEG&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure the first argument in the SWITCH function refers to the "Revenue Fields" column in the Field Parameter table which is a string.&lt;BR /&gt;The SWITCH function is comparing the selected "Revenue Fields" string, with each of the strings that are in the 2nd, 4th... parameters.&lt;/P&gt;&lt;P&gt;If you show me your measure and you field parameter table it would be easier to help you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 10:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3457499#M131803</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2023-10-03T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3457523#M131806</link>
      <description>&lt;P&gt;I'm not sure I understand your question.&lt;BR /&gt;The SWITCH measure can be anywhere. [Revenue with taxes], [Revenue without taxes] are the target measures, they are not columns.&lt;BR /&gt;In the 2nd, and 4th field of the SWITCH measure you need to refer to them with their table and column names, same as in the Field Parameter table. Maybe that's why in can be a little confusing.&lt;BR /&gt;In my case, I put my measures in a 'Key measures' table. Also pay attention to nested quotes if your table name has spaces.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 10:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3457523#M131806</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2023-10-03T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3458425#M131856</link>
      <description>&lt;P&gt;Thank you so much charles_g. After reading your response and knowing that the fields should be text and staring at your solution for what seemed like hours, it finally clicked and I realised I was missing the "" which is what would make my field text. The solution has worked perfectly thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 22:54:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3458425#M131856</guid>
      <dc:creator>NMEG</dc:creator>
      <dc:date>2023-10-03T22:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3631400#M140457</link>
      <description>&lt;P&gt;Has anyone tried this using a date filter in the measure? This method of using field parameters worked for me in a couple of measures, but I wanted to use it with a date filter to see information from last year, and it does not matter what I do; the date filter within the measure does not seem to work. Does anyone have an answer for this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 21:38:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3631400#M140457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-10T21:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3635902#M140657</link>
      <description>&lt;P&gt;Hello, I've got a similar issue but I haven't been able to find a solution. I created a new post: &lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-doesn-t-work-to-add-a-dynamic-header-to-Field/m-p/3635430" target="_self"&gt;SELECTEDVALUE doesn't work to add a dynamic header to Field Parameters&lt;/A&gt;. Maybe comparing similar problems can help us solve them, let me know.&lt;/P&gt;&lt;P&gt;Olivier.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 13:11:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/3635902#M140657</guid>
      <dc:creator>oduc78</dc:creator>
      <dc:date>2024-01-12T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4304997#M170948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like my issue is very similar to this one so i followed this approach suggested by another super user in my post,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have this table showing growth vs PY for different period, and would like to be able to switch between volume and value easily&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;one of the formulas for calculation for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD Retail = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( [Retail Volume], &lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Date], &lt;/SPAN&gt;&lt;SPAN&gt;"03/31"&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And i have replicated this SWITCH formula like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Retail =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Test Parameter'&lt;/SPAN&gt;&lt;SPAN&gt;[Test Parameter Fields]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"'Def market'[Retail Value]"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Retail Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"'Def market'[Retail Volume]"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Retail Volume]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table for my parameter:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;after all that, the numbers just won't change using the parameter....anyone know where i got wrong? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 00:48:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4304997#M170948</guid>
      <dc:creator>mogugu_84</dc:creator>
      <dc:date>2024-11-28T00:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4307856#M171085</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829804" data-lia-user-login="mogugu_84" class="lia-mention lia-mention-user"&gt;mogugu_84&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The 'YTD Retail' measure should use the 'Retail' measure instead of 'Retail Volume'.&lt;BR /&gt;When you toggle the value of the field parameter 'Def market', the underlying indicator will switch between Retail Value and Retail Volume in the 'YTD Retail' measure.&lt;BR /&gt;&lt;BR /&gt;It's a chain reaction : Field parameter (Def market) &amp;gt; Retail &amp;gt; YTD Retail.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Actually the toggle doesn't have to be a field parameter, it could be a table with one column and 2 values, as long as you can put it in a slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also get rid of the intermediary measure 'Retail' and use a variable instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YTD Retail =
    VAR retail =
        SWITCH(
            SELECTEDVALUE('Test Parameter'[Test Parameter Fields]),
            "'Def market'[Retail Value]", [Retail Value],
            "'Def market'[Retail Volume]", [Retail Volume]
        )
    RETURN
    CALCULATE ( retail, DATESYTD ( 'Calendar'[Date], "03/31" ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 15:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4307856#M171085</guid>
      <dc:creator>charles_g</dc:creator>
      <dc:date>2024-11-29T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4308146#M171099</link>
      <description>&lt;P&gt;Awesome! this works now! Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 03:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4308146#M171099</guid>
      <dc:creator>mogugu_84</dc:creator>
      <dc:date>2024-11-30T03:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4411939#M175217</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am stuck at a similar problem which I cannot seem to solve even with ChatGPT's help (my experience with ChatGPT and Power BI has not been remotely good &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; ).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have added a field parameter which takes 2 columns sales and volume - so that my matrix visual could hopefully switch between these 2 columns based on what I choose as my parameter.&lt;BR /&gt;&lt;BR /&gt;This is what my parameter looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;I have added a measure which looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;SPAN&gt;Selected Net Sales =&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SP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PAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Year'&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;chosenMeasure&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Sales'&lt;/SPAN&gt;&lt;SPAN&gt;[Year Scenario]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SelectedYear&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" Procurement BT"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;But this throws blank value. When I take the sum of the total column as the field parameter - I get the value in the matrix but then I cannot filter anything - which defeats the purpose altogether.&lt;BR /&gt;&lt;BR /&gt;I cannot use the year scenario as another filter - since this is a fixed entry in the matrix.&lt;BR /&gt;&lt;BR /&gt;P.S. - I have been struggling so much with Power BI lately, that I swear I just want to go back to Excel dashboards sometimes or not do anything smart on Power BI - do all transformations outside of it and just do basic visuals on it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Feb 2025 07:07:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4411939#M175217</guid>
      <dc:creator>ranagutgut</dc:creator>
      <dc:date>2025-02-15T07:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4422352#M175564</link>
      <description>&lt;P&gt;I have a similar issue, I tried to regenerate your code, but when creating measure "Revenue" using switch and Selectedvalue, I got the error message that "The value for Revenue with taxes" can not be determined. Either the column does not exist, or there is no current row for this column.". Please help!&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;&lt;P&gt;Here is the field parameter&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4422352#M175564</guid>
      <dc:creator>andinh</dc:creator>
      <dc:date>2025-02-21T16:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the selected Field Parameter in a DAX formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4609163#M176440</link>
      <description>&lt;P&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected Net Sales =&lt;BR /&gt;&lt;BR /&gt;&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[Revenue]"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Sales'&lt;/SPAN&gt;&lt;SPAN&gt;[Total Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"'Sales'[Volume]"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Sales'&lt;/SPAN&gt;&lt;SPAN&gt;[Total Volume]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Sales'&lt;/SPAN&gt;&lt;SPAN&gt;[Year Scenario]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SelectedYear&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;" Procurement BT"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 18:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-to-use-the-selected-Field-Parameter-in-a-DAX/m-p/4609163#M176440</guid>
      <dc:creator>VaibhavR2196</dc:creator>
      <dc:date>2025-03-13T18:08:39Z</dc:date>
    </item>
  </channel>
</rss>

