<?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: Need Help with an &amp;quot;if&amp;quot; formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-an-quot-if-quot-formula/m-p/736412#M2049</link>
    <description>&lt;P&gt;You're not too far away.&lt;/P&gt;&lt;P&gt;The syntax for nested IFs in DAX can begin to look messy but you just need some additional commas to separate the clauses.&lt;/P&gt;&lt;P&gt;More importantly, you need to reverse the IF clauses in this case because you will only get two value comparisons using the current order : is MU greater than 0? if yes, then return 1, and the second clause will never get tested for positive numbers e.g. if MU is 0.75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the DAX should look something like&lt;/P&gt;&lt;PRE&gt;Column = if (MU Diff &amp;gt; 2, 4,
             IF (MU Diff &amp;gt; 1, 3,
                IF (MU Diff &amp;gt; 0.5, 2, 0)))&lt;/PRE&gt;&lt;P&gt;I deliberately missed a clause for you to put in&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 11:05:35 GMT</pubDate>
    <dc:creator>HotChilli</dc:creator>
    <dc:date>2019-07-10T11:05:35Z</dc:date>
    <item>
      <title>Need Help with an "if" formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-an-quot-if-quot-formula/m-p/735838#M2025</link>
      <description>&lt;P&gt;I need help with an if Formual.&amp;nbsp; I have a colum that contains a value.&amp;nbsp; I need to "rate" that value based on if.&lt;/P&gt;&lt;P&gt;If MU Diff &amp;gt;0,1&lt;/P&gt;&lt;P&gt;If MU Diff &amp;gt; .5,2&lt;/P&gt;&lt;P&gt;If MU Diff &amp;gt;1,3&lt;/P&gt;&lt;P&gt;If MU Diff &amp;gt;2,4&lt;/P&gt;&lt;P&gt;otherwise 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the DAX Equivleant of that?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 23:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-an-quot-if-quot-formula/m-p/735838#M2025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-09T23:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with an "if" formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-an-quot-if-quot-formula/m-p/736412#M2049</link>
      <description>&lt;P&gt;You're not too far away.&lt;/P&gt;&lt;P&gt;The syntax for nested IFs in DAX can begin to look messy but you just need some additional commas to separate the clauses.&lt;/P&gt;&lt;P&gt;More importantly, you need to reverse the IF clauses in this case because you will only get two value comparisons using the current order : is MU greater than 0? if yes, then return 1, and the second clause will never get tested for positive numbers e.g. if MU is 0.75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the DAX should look something like&lt;/P&gt;&lt;PRE&gt;Column = if (MU Diff &amp;gt; 2, 4,
             IF (MU Diff &amp;gt; 1, 3,
                IF (MU Diff &amp;gt; 0.5, 2, 0)))&lt;/PRE&gt;&lt;P&gt;I deliberately missed a clause for you to put in&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 11:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-an-quot-if-quot-formula/m-p/736412#M2049</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-07-10T11:05:35Z</dc:date>
    </item>
  </channel>
</rss>

