<?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 Multiple IF statements in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472741#M67397</link>
    <description>&lt;P&gt;Creating a new Column or Change original - I am trying to Divide a Value in a Column based on the Value's Name. I have multiple NAMEs and VALUEs to change. I am unable to add multiple IF statements. Also if the NAME is not defined how do I pass the original Value to the new column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DSR'[Name]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"CureTimeValue"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;10&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;Your help is much appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 23 Apr 2022 16:15:09 GMT</pubDate>
    <dc:creator>JacksonMaui</dc:creator>
    <dc:date>2022-04-23T16:15:09Z</dc:date>
    <item>
      <title>Multiple IF statements in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472741#M67397</link>
      <description>&lt;P&gt;Creating a new Column or Change original - I am trying to Divide a Value in a Column based on the Value's Name. I have multiple NAMEs and VALUEs to change. I am unable to add multiple IF statements. Also if the NAME is not defined how do I pass the original Value to the new column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DSR'[Name]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"CureTimeValue"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;10&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;Your help is much appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Apr 2022 16:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472741#M67397</guid>
      <dc:creator>JacksonMaui</dc:creator>
      <dc:date>2022-04-23T16:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statements in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472831#M67401</link>
      <description>&lt;P&gt;You could specify another IF() function in the ResultFalse (aka else) parameter. The last IF() would return the original value. See:&amp;nbsp;&lt;A href="https://dax.guide/if/" target="_blank"&gt;IF – DAX Guide&lt;/A&gt; For example&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = IF('DSR'[Name]="CureTimeValue",[VALUE]/10, 
             IF('DSR'[Name]="SomethingelseValue",[VALUE]/15,
                  [Value]
               )
           )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Another, maybe better option is Switch()&amp;nbsp;&lt;A href="https://dax.guide/switch/" target="_blank"&gt;SWITCH – DAX Guide&lt;/A&gt;. Example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = SWITCH('DSR'[Name],
                "CureTimeValue",[VALUE]/10,
                "SomethingelseValue",[Value]/15,
                [Value]
          )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 18:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472831#M67401</guid>
      <dc:creator>karnold</dc:creator>
      <dc:date>2022-04-23T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statements in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472870#M67405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382131" data-lia-user-login="JacksonMaui" class="lia-mention lia-mention-user"&gt;JacksonMaui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best is to have all names vs the related value in a lookup (dimension) table. The easiest and most efficient way to proceed after that is to create a one to many relationship. The rest wiuld be a piece of cake.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 19:30:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2472870#M67405</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-23T19:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statements in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2474995#M67541</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260689" data-lia-user-login="karnold" class="lia-mention lia-mention-user"&gt;karnold&lt;/a&gt;&amp;nbsp;I was close, this was perfect solution. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 12:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-statements-in-DAX/m-p/2474995#M67541</guid>
      <dc:creator>JacksonMaui</dc:creator>
      <dc:date>2022-04-25T12:46:18Z</dc:date>
    </item>
  </channel>
</rss>

