<?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 Dateformat in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935206#M9727</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to convert this text column into a date column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text value looks like this 15-FEB-20 11.00.00.000000 PM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 09:14:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-17T09:14:44Z</dc:date>
    <item>
      <title>Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935206#M9727</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to convert this text column into a date column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text value looks like this 15-FEB-20 11.00.00.000000 PM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:14:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935206#M9727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T09:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935293#M9739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need exactly DAX, not M formula use:&lt;/P&gt;
&lt;P&gt;a. for only date&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ColumnDate = DATEVALUE(FORMAT(LEFT([Columntext],9),"General Date"))&lt;/LI-CODE&gt;
&lt;P&gt;b. for the datetime column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ColumnDateTime = 
var _date = DATEVALUE(FORMAT(LEFT([Columntext],9),"General Date"))
var _time = TIMEVALUE(SUBSTITUTE(RIGHT([Columntext],LEN([Columntext])-10),".000000", ""))

RETURN
_date + _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935293#M9739</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-17T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935369#M9743</link>
      <description>&lt;P&gt;When i try to run the formula i get this error:&amp;nbsp;&lt;BR /&gt;"Cannot convert value '' of type Text to type Date."&lt;/P&gt;&lt;P&gt;Do you have any solution for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:35:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935369#M9743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T10:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935377#M9745</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have empty cells with data? if so, how do you want to calculate it? what date it should return?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:41:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935377#M9745</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-17T10:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935384#M9746</link>
      <description>&lt;P&gt;I have a column with date values like this one: "&lt;SPAN&gt;15-FEB-20 11.00.00.000000 PM." but they are formated as text and not date/time. I want to format the column from text to date/time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935384#M9746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935399#M9748</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, but error "&lt;SPAN&gt;Cannot convert value '' of type Text to type Date." says to me that it is possible that you have an empty cells in your Date column. How do you plan to perform empty cells?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935399#M9748</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-17T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935403#M9749</link>
      <description>&lt;P&gt;Aaaaah! Yes now it works! I didnt see the blank cell.. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateformat/m-p/935403#M9749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T10:54:42Z</dc:date>
    </item>
  </channel>
</rss>

