<?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 ISNUMBER function in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019571#M13149</link>
    <description>My pleasure! Those kinds of nit things can be maddening! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 10 Apr 2020 12:43:51 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-04-10T12:43:51Z</dc:date>
    <item>
      <title>Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019473#M13144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to extract month and year form two text fields. It is either embedded in field1 or field2. I have to try field one first and if it can't be extracted from field1, then it should be extracted from field2.&lt;/P&gt;&lt;P&gt;Field1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Field2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ResultField&lt;/P&gt;&lt;P&gt;07184C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 70007184c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0718&lt;/P&gt;&lt;P&gt;0RLET &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0220RLET &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0220&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following DAX command for calculated column resultfield&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;ResultField&lt;SPAN&gt; = if(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnumber(left(Sales[Field1],4)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(Sales[Field1],4),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left(Sales[Field2],4)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is always returning data from field2 which is not correct for first row.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And if i use:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;ResultField&lt;SPAN&gt; = if(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnumber(value(left(Sales[Field1],4))),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(Sales[Field1],4),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left(Sales[Field2],4)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is returning #error in column for both the rows.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Apr 2020 11:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019473#M13144</guid>
      <dc:creator>Velocity</dc:creator>
      <dc:date>2020-04-10T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019477#M13145</link>
      <description>Hmm, I'm guessing it is the 0 padding that is throwing things off.</description>
      <pubDate>Fri, 10 Apr 2020 11:20:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019477#M13145</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-10T11:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019508#M13146</link>
      <description>&lt;P&gt;I don't think 0 padding is the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;left(Sales[Field1],4) should return '0718' and why is that not being treated as number is the issue. Unfortunately, i have to use data as received.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 11:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019508#M13146</guid>
      <dc:creator>Velocity</dc:creator>
      <dc:date>2020-04-10T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019526#M13147</link>
      <description>&lt;P&gt;Right, so ISNUMBER isn't working because it is testing if it is a number. It is not, it is text. You probably want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
    IF(
        ISERROR(VALUE(LEFT([Field1],4))),
        LEFT([Field2],4),
        LEFT([Field1],4)
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 11:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019526#M13147</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-10T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019553#M13148</link>
      <description>&lt;P&gt;Thanks a ton Greg&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 12:24:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019553#M13148</guid>
      <dc:creator>Velocity</dc:creator>
      <dc:date>2020-04-10T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ISNUMBER function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019571#M13149</link>
      <description>My pleasure! Those kinds of nit things can be maddening! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 10 Apr 2020 12:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-ISNUMBER-function-in-DAX/m-p/1019571#M13149</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-10T12:43:51Z</dc:date>
    </item>
  </channel>
</rss>

