<?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: Help with SWITCH Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548070#M136459</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650594" data-lia-user-login="Marshmallow" class="lia-mention lia-mention-user"&gt;Marshmallow&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Below is my new table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The new following DAX might work for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
   var _fina = SELECTEDVALUE('Table'[Final answer])
   var result = 
      IF(_fina == "yes" , MAX('Table'[Organisation_dummy_name])," ")
    return result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;The final output is shown in the following figure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 03:05:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-23T03:05:20Z</dc:date>
    <item>
      <title>Help with SWITCH Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3547805#M136440</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;hi , not sure if this is the right forum but if &amp;nbsp;this is the right forum, anyone can help me please. I am stucked with my own measure.....i am trying to create a measure that will display data of the first two column once i type 'yes' in the third column. &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;at the moment i am using switch(true(),max(table[final answer])="Yes", Max(Table[Organisation_dummy_name]),"")&lt;/P&gt;&lt;P&gt;however when i entered yes, it displays wrong answer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expected to see South Australia, General, Diageo PLC in the table below when i entered "Yes" in the Final Answer of the table above (data source)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help :)...I didn't know what's missing&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 23:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3547805#M136440</guid>
      <dc:creator>Marshmallow</dc:creator>
      <dc:date>2023-11-22T23:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SWITCH Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548040#M136454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650594" data-lia-user-login="Marshmallow" class="lia-mention lia-mention-user"&gt;Marshmallow&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Below is my table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The following DAX might work for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
   CALCULATE(
     MAX('Table'[Organisation_dummy_name]),
     FILTER('Table' , 'Table'[Final answer] = "yes"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;The final output is shown in the following figure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 02:47:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548040#M136454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-23T02:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SWITCH Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548062#M136457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Xianda, I still would like the row that doesn't have yes to be displayed but not displaying the organisation name. So taking your table as example, if Diageo PLC is not a yes for South Australia and General, it will be displayed as&amp;nbsp;&lt;/P&gt;&lt;P&gt;South Australia | General | [blank]&lt;/P&gt;&lt;P&gt;Victoria | General | Diageo PLC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So whilst waiting for the Final Answer to be yes, I still need to have the State and Type displayed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 02:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548062#M136457</guid>
      <dc:creator>Marshmallow</dc:creator>
      <dc:date>2023-11-23T02:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SWITCH Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548070#M136459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650594" data-lia-user-login="Marshmallow" class="lia-mention lia-mention-user"&gt;Marshmallow&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Below is my new table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The new following DAX might work for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
   var _fina = SELECTEDVALUE('Table'[Final answer])
   var result = 
      IF(_fina == "yes" , MAX('Table'[Organisation_dummy_name])," ")
    return result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;The final output is shown in the following figure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 03:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-SWITCH-Function/m-p/3548070#M136459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-23T03:05:20Z</dc:date>
    </item>
  </channel>
</rss>

