<?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 Create table with what-if parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2175550#M50604</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a dynamic table with DAX functions where one of the columns shows the value that user input in the what-if parameter. For example if the user enter these values for what-if parameters:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My table should shows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm tryng to use this DAX function to create the table, but it don't work (the error message is: too many arguments were passed to the SELECTEDMEASURE function. The maximum argument count fot the function is 0):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 22:54:36 GMT</pubDate>
    <dc:creator>John117</dc:creator>
    <dc:date>2021-11-05T22:54:36Z</dc:date>
    <item>
      <title>Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2175550#M50604</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a dynamic table with DAX functions where one of the columns shows the value that user input in the what-if parameter. For example if the user enter these values for what-if parameters:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My table should shows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm tryng to use this DAX function to create the table, but it don't work (the error message is: too many arguments were passed to the SELECTEDMEASURE function. The maximum argument count fot the function is 0):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 22:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2175550#M50604</guid>
      <dc:creator>John117</dc:creator>
      <dc:date>2021-11-05T22:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176529#M50623</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250234" data-lia-user-login="John117" class="lia-mention lia-mention-user"&gt;John117&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a table with one column with the Value names&lt;/LI&gt;
&lt;LI&gt;Create the measure below&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I used an IF() but use a SWITCH () if there are more values.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&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;Value table =
VAR _curValue1 = 'Value 1'[Value 1 Value]
VAR _curTableValue =
    MAX ( newtable[Value] )
VAR _curValue2 = 'Value 2'[Value 2 Value]
RETURN
    IF ( _curTableValue = "Value 1", _curValue1, _curValue2 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 16:20:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176529#M50623</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-07T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176533#M50624</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 16:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176533#M50624</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-07T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176631#M50629</link>
      <description>&lt;P&gt;Hello Nathaniel!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It works, thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176631#M50629</guid>
      <dc:creator>John117</dc:creator>
      <dc:date>2021-11-07T19:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176632#M50630</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250234" data-lia-user-login="John117" class="lia-mention lia-mention-user"&gt;John117&lt;/a&gt;&amp;nbsp;, it is an interesting problem!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:42:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176632#M50630</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-07T19:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176634#M50632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250234" data-lia-user-login="John117" class="lia-mention lia-mention-user"&gt;John117&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;BTW here is my pbix if you might be able to use it.&lt;BR /&gt;&lt;A href="https://1drv.ms/u/s!AgCd7AyfqZtE3z_A6wH2EyvfloHC?e=x3JuXX" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!AgCd7AyfqZtE3z_A6wH2EyvfloHC?e=x3JuXX&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2176634#M50632</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-07T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create table with what-if parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2900863#M94473</link>
      <description>&lt;P&gt;Hi Nathaniel_C,&lt;/P&gt;&lt;P&gt;I found this is interesting for learning what if parameter. But if there are three or more what if parameters, how could we retrieve the current value, that is, how to modify _curTableValue statement? If we still use MAX, it always returns the biggest&amp;nbsp; value (value 3 if 3 what if parameter).&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 19:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-with-what-if-parameters/m-p/2900863#M94473</guid>
      <dc:creator>johnChu</dc:creator>
      <dc:date>2022-11-11T19:08:26Z</dc:date>
    </item>
  </channel>
</rss>

