<?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 convert 7 character text DMMYYY and 8 character text DDMMYYYY column to date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/849926#M6653</link>
    <description />
    <pubDate>Tue, 19 Nov 2019 07:56:42 GMT</pubDate>
    <dc:creator>PStokes</dc:creator>
    <dc:date>2019-11-19T07:56:42Z</dc:date>
    <item>
      <title>convert 7 character text DMMYYY and 8 character text DDMMYYYY column to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/849926#M6653</link>
      <description />
      <pubDate>Tue, 19 Nov 2019 07:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/849926#M6653</guid>
      <dc:creator>PStokes</dc:creator>
      <dc:date>2019-11-19T07:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: convert 7 character text DMMYYY and 8 character text DDMMYYYY column to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/850198#M6661</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="187377" data-lia-user-login="PStokes" class="lia-mention lia-mention-user"&gt;PStokes&lt;/a&gt;&amp;nbsp;Please try below formula. in case it doesn't work for you please share two three record for each formate&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DDMMYYYY = DATE(RIGHT('Table'[Date],4),MID('Table'[Date],3,2),LEFT('Table'[Date],2))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case of DMMYYYY please check the length of column and if it is 8 then you can use above else&lt;/P&gt;&lt;P&gt;dMMYYYY =&amp;nbsp;&lt;BR /&gt;VAR _length = len('table'[column])&lt;BR /&gt;RETURN IF(_length=7,DATE(RIGHT('Table'[Date],4),MID('Table'[Date],3,2),LEFT('Table'[Date],1)),DATE(RIGHT('Table'[Date],4),MID('Table'[Date],3,2),LEFT('Table'[Date],2)))&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 11:07:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/850198#M6661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: convert 7 character text DMMYYY and 8 character text DDMMYYYY column to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/860935#M6956</link>
      <description>&lt;P&gt;Thanks, I tried to add colum and use the VAR as written but received a sytax error&lt;/P&gt;&lt;P&gt;Examples of the data below.&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date Text&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1012019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21012019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27112019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8112019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 29 Nov 2019 17:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/860935#M6956</guid>
      <dc:creator>PStokes</dc:creator>
      <dc:date>2019-11-29T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: convert 7 character text DMMYYY and 8 character text DDMMYYYY column to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/860949#M6957</link>
      <description>&lt;P&gt;sorry saw my syntax error and corrected it.&lt;/P&gt;&lt;P&gt;This worked if I chnaged the MID expression to&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;MID('table'[date],2,2) for 7 character dates and&amp;nbsp;MID('table'[date],3,2) for 8 character dates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;successful formulae below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _length = LEN('table'[date]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN IF(_length=7,DATE(RIGHT('table'[date],4),MID('table'[date],2,2),LEFT('table'[date],1)),DATE(Right('table'[date],4),MID('table'[date],3,2),LEFT('table'[date],2)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Nov 2019 18:19:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/convert-7-character-text-DMMYYY-and-8-character-text-DDMMYYYY/m-p/860949#M6957</guid>
      <dc:creator>PStokes</dc:creator>
      <dc:date>2019-11-29T18:19:43Z</dc:date>
    </item>
  </channel>
</rss>

