<?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 Multi Condition Statement to Set a Variable in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626436#M177100</link>
    <description>&lt;P&gt;I am looking to create a variable called DIFF that is set to a specific number based on the value of a text string called STATUS.&amp;nbsp; Basically -&amp;nbsp;&lt;/P&gt;&lt;P&gt;If STATUS=Submitted then DIFF=14&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If STATUS=Active then DIFF=21&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If STATUS=OnHold then DIFF=28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the syntax for this?&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 19:45:23 GMT</pubDate>
    <dc:creator>hubnerj</dc:creator>
    <dc:date>2025-03-26T19:45:23Z</dc:date>
    <item>
      <title>Multi Condition Statement to Set a Variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626436#M177100</link>
      <description>&lt;P&gt;I am looking to create a variable called DIFF that is set to a specific number based on the value of a text string called STATUS.&amp;nbsp; Basically -&amp;nbsp;&lt;/P&gt;&lt;P&gt;If STATUS=Submitted then DIFF=14&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If STATUS=Active then DIFF=21&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If STATUS=OnHold then DIFF=28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the syntax for this?&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 19:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626436#M177100</guid>
      <dc:creator>hubnerj</dc:creator>
      <dc:date>2025-03-26T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Condition Statement to Set a Variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626458#M177104</link>
      <description>&lt;P&gt;Var diff =&lt;/P&gt;&lt;P&gt;Switch(&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selectedvalue( table[status] ),&lt;/P&gt;&lt;P&gt;"Submitted", 14,&lt;/P&gt;&lt;P&gt;"Active", 21,&lt;/P&gt;&lt;P&gt;"On hold", 28&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 20:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626458#M177104</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-26T20:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Condition Statement to Set a Variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626527#M177109</link>
      <description>&lt;P&gt;Worked great, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 21:09:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multi-Condition-Statement-to-Set-a-Variable/m-p/4626527#M177109</guid>
      <dc:creator>hubnerj</dc:creator>
      <dc:date>2025-03-26T21:09:56Z</dc:date>
    </item>
  </channel>
</rss>

