<?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: Date Time Format Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001238#M101334</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293337" data-lia-user-login="Pawan" class="lia-mention lia-mention-user"&gt;Pawan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems it is not recognizing the YYYY-MM-DD format. In this case am afraid that it has to be done manually by extracting the year, the month, the day using LEFT and MID functions wrapped by VALUE then using the DATE function to calculate the date out of them.&amp;nbsp;&lt;BR /&gt;on the other hand you can use MID to extract the time wraped with CONVERT - TIME&lt;/P&gt;
&lt;P&gt;Then add the time to date like _date + _time&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 14:36:05 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-01-04T14:36:05Z</dc:date>
    <item>
      <title>Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001015#M101305</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you help me to convert below date field into Date Time format in DAX to use in Tabular model.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Expected Output format:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001015#M101305</guid>
      <dc:creator>Pawan</dc:creator>
      <dc:date>2023-01-04T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001034#M101308</link>
      <description>&lt;P&gt;If you do not need all datetime precision anywhere in the model, I suggest to format it in the source.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:18:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001034#M101308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-04T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001049#M101310</link>
      <description>&lt;P&gt;I don't have database accesss. i am looking for solution in DAX.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001049#M101310</guid>
      <dc:creator>Pawan</dc:creator>
      <dc:date>2023-01-04T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001075#M101315</link>
      <description>&lt;P&gt;What about PowerQuery?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:40:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001075#M101315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-04T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001118#M101323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293337" data-lia-user-login="Pawan" class="lia-mention lia-mention-user"&gt;Pawan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;CONVERT ( LEFT ( 'Table'[HistoryDateOld], 20 ), DATETIME )&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:58:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001118#M101323</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-04T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001158#M101328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; I am getting error like &lt;STRONG&gt;Can't convert value of type text to Datetime&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001158#M101328</guid>
      <dc:creator>Pawan</dc:creator>
      <dc:date>2023-01-04T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001227#M101332</link>
      <description>&lt;P&gt;It should be 19&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001227#M101332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-04T14:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001238#M101334</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293337" data-lia-user-login="Pawan" class="lia-mention lia-mention-user"&gt;Pawan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems it is not recognizing the YYYY-MM-DD format. In this case am afraid that it has to be done manually by extracting the year, the month, the day using LEFT and MID functions wrapped by VALUE then using the DATE function to calculate the date out of them.&amp;nbsp;&lt;BR /&gt;on the other hand you can use MID to extract the time wraped with CONVERT - TIME&lt;/P&gt;
&lt;P&gt;Then add the time to date like _date + _time&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001238#M101334</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-04T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001244#M101335</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could be. I thought the space counts. Probably not?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3001244#M101335</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-04T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002735#M101442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293337" data-lia-user-login="Pawan" class="lia-mention lia-mention-user"&gt;Pawan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can transfer data in power query, and change it as datetime type&lt;/P&gt;
&lt;P&gt;e.g:&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;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002735#M101442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-05T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002751#M101443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;I am working on Tabular cube and loading into Power BI. I can apply onl dax Convertion in Tabular cube.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002751#M101443</guid>
      <dc:creator>Pawan</dc:creator>
      <dc:date>2023-01-05T08:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002786#M101444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293337" data-lia-user-login="Pawan" class="lia-mention lia-mention-user"&gt;Pawan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this code:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;SPAN&gt;CONVERT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;([Column1],&lt;/SPAN&gt;&lt;SPAN&gt;19&lt;/SPAN&gt;&lt;SPAN&gt;),DATETIME)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002786#M101444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-05T08:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time Format Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002834#M101447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;I am getting this error&amp;nbsp;&lt;STRONG&gt;Can't convert value of type text to Datetime&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 09:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Time-Format-Help/m-p/3002834#M101447</guid>
      <dc:creator>Pawan</dc:creator>
      <dc:date>2023-01-05T09:03:19Z</dc:date>
    </item>
  </channel>
</rss>

