<?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 Text will not convert to DateTime in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053068#M105227</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the other DateTime fields in my data easily converted from text except for this one I am getting an error. It gives me error in powerquery when I go to convert it. How can I get this to DateTime?&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;</description>
    <pubDate>Tue, 31 Jan 2023 15:24:47 GMT</pubDate>
    <dc:creator>nhodges</dc:creator>
    <dc:date>2023-01-31T15:24:47Z</dc:date>
    <item>
      <title>Text will not convert to DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053068#M105227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the other DateTime fields in my data easily converted from text except for this one I am getting an error. It gives me error in powerquery when I go to convert it. How can I get this to DateTime?&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;</description>
      <pubDate>Tue, 31 Jan 2023 15:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053068#M105227</guid>
      <dc:creator>nhodges</dc:creator>
      <dc:date>2023-01-31T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Text will not convert to DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053118#M105232</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;It seems your date is in ISO 8601 type datetime. Try using "DateTime.FromText".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;E.g.&amp;nbsp;= Table.AddColumn(Source, "Custom", each DateTime.FromText([Column1]))&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;I noticed your year and month are in a different order than in my example. In that case this is a bit trickier.&amp;nbsp;&lt;BR /&gt;Then you need to add optional variables. E.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= Table.AddColumn(Source, "Custom", each DateTime.FromText([Column1],[Format="yyyy-dd-MM'T'HH:mm:ss", Culture="en-US"]))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:48:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053118#M105232</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-01-31T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text will not convert to DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053202#M105239</link>
      <description>&lt;P&gt;Hi, im not sure how get to this option I tried to add a column in the main pbi view but it will not read the formula you gave me. So I assume I have to do it in the power query editor but cannot figure out how to add a column here with a formula.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:08:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3053202#M105239</guid>
      <dc:creator>nhodges</dc:creator>
      <dc:date>2023-01-31T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Text will not convert to DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3054185#M105302</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500540" data-lia-user-login="nhodges" class="lia-mention lia-mention-user"&gt;nhodges&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yyyy/dd/mm is very rare. do you know the country origin of this data?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 02:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Text-will-not-convert-to-DateTime/m-p/3054185#M105302</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-01T02:55:23Z</dc:date>
    </item>
  </channel>
</rss>

