<?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: Conversion issue from text to integer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268823#M169265</link>
    <description>&lt;P&gt;Thanks a lot!! It worked&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt; . This was the catch that I missed&amp;nbsp;ISBLANK(DOB) || DOB = ""&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 08:44:41 GMT</pubDate>
    <dc:creator>powerbidev123</dc:creator>
    <dc:date>2024-11-04T08:44:41Z</dc:date>
    <item>
      <title>Conversion issue from text to integer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268756#M169258</link>
      <description>&lt;P&gt;I have column YOB which has data type text. it has some blank values and whole number values . When I try converting the column to whole number I get an error which says cant convert '' to integer. I want to convert it to integer as I want to perform mathematical operation using this column. Any suggestion as to how I can convert the blank values to number as well&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried replacing the blank values with 0 but still getting an error which is posted below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need a calculated column because I cant do any changes in power query model as the data source is an online one and any changes in the structure in power query will cause an error the next time data is refreshed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268756#M169258</guid>
      <dc:creator>powerbidev123</dc:creator>
      <dc:date>2024-11-04T08:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion issue from text to integer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268812#M169264</link>
      <description>&lt;P&gt;Try this one&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YOB = 
VAR DOB = Query1[Date of Birth]
RETURN IF(
    ISBLANK(DOB) || DOB = "", 
    0, 
    VALUE(MID(DOB, 7, 4))
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268812#M169264</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-11-04T08:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion issue from text to integer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268823#M169265</link>
      <description>&lt;P&gt;Thanks a lot!! It worked&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt; . This was the catch that I missed&amp;nbsp;ISBLANK(DOB) || DOB = ""&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conversion-issue-from-text-to-integer/m-p/4268823#M169265</guid>
      <dc:creator>powerbidev123</dc:creator>
      <dc:date>2024-11-04T08:44:41Z</dc:date>
    </item>
  </channel>
</rss>

