<?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: DAX Formula to Check if Text is in Date Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Check-if-Text-is-in-Date-Format/m-p/2119556#M48572</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I figured out a way to check this for my current dataset. A nested IF statment that checks for errors with a DateValue function and then checks for blank data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Start Date =&lt;BR /&gt;IF(ISERROR(DATEVALUE(PropertiesList[Start Date])),&lt;BR /&gt;FORMAT(DataDetails[CreatedDate],"Short Date"),&lt;BR /&gt;IF(ISBLANK(PropertiesList[Start Date]),&lt;BR /&gt;FORMAT(DataDetails[CreatedDate],"Short Date"),&lt;BR /&gt;PropertiesList[Start Date]))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 16:07:43 GMT</pubDate>
    <dc:creator>rlmeyer</dc:creator>
    <dc:date>2021-10-06T16:07:43Z</dc:date>
    <item>
      <title>DAX Formula to Check if Text is in Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Check-if-Text-is-in-Date-Format/m-p/2119478#M48570</link>
      <description>&lt;P&gt;I am wanting to use a calcuated column to take a list of text from a software where the users enter in a date and then output a date for other fields in my dashboard. The software does not have the ability to force the user to only enter in the text in a date format. The user can leave the field blank, enter in text, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The field the data is pulling from is&amp;nbsp;&lt;SPAN&gt;(PropertiesList[Start Date]) and if the user left the field blank or input text that is not in date format, I want the calcuated column to use the date that the file was created (DataDetails[CreatedDate]).&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a way to use a formula to evaluate if the&amp;nbsp;&lt;SPAN&gt;(PropertiesList[Start Date]) field has the text in a date format and if not use the&amp;nbsp;(DataDetails[CreatedDate]) field?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Something along the lines of IF IS DATE or IF FORMAT is Date?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:38:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Check-if-Text-is-in-Date-Format/m-p/2119478#M48570</guid>
      <dc:creator>rlmeyer</dc:creator>
      <dc:date>2021-10-06T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to Check if Text is in Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Check-if-Text-is-in-Date-Format/m-p/2119556#M48572</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I figured out a way to check this for my current dataset. A nested IF statment that checks for errors with a DateValue function and then checks for blank data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Start Date =&lt;BR /&gt;IF(ISERROR(DATEVALUE(PropertiesList[Start Date])),&lt;BR /&gt;FORMAT(DataDetails[CreatedDate],"Short Date"),&lt;BR /&gt;IF(ISBLANK(PropertiesList[Start Date]),&lt;BR /&gt;FORMAT(DataDetails[CreatedDate],"Short Date"),&lt;BR /&gt;PropertiesList[Start Date]))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 16:07:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Check-if-Text-is-in-Date-Format/m-p/2119556#M48572</guid>
      <dc:creator>rlmeyer</dc:creator>
      <dc:date>2021-10-06T16:07:43Z</dc:date>
    </item>
  </channel>
</rss>

