<?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: DATEVALUE function recognising date as mmddyyyy instead of ddmmyyyy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081642#M162034</link>
    <description>&lt;P&gt;You could convert the column to a date in power query by adding a custom column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date.FromText(Text.Middle([YourColumnName], 4, 4) &amp;amp; "-" &amp;amp; Text.Middle([YourColumnName], 2, 2) &amp;amp; "-" &amp;amp; Text.Start([YourColumnName], 2))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or in DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATE(
    MID([YourColumnName], 4, 4),   // Year
    MID([YourColumnName], 2, 2),   // Month
    MID([YourColumnName], 1, 2)    // Day
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 15:03:50 GMT</pubDate>
    <dc:creator>aduguid</dc:creator>
    <dc:date>2024-08-05T15:03:50Z</dc:date>
    <item>
      <title>DATEVALUE function recognising date as mmddyyyy instead of ddmmyyyy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081610#M162033</link>
      <description>&lt;P&gt;I've looked through this forum and haven't found a response that solves this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table from ssms that comes into Power BI as a date (ddmmyyyy) and my locale is also set to UK however, in a DAX query I've written I have to add a date to be used as a filter however, the correct outcome is only achieved by writing the date in a mmddyyyy format instead of ddmmyyyy. How can this be resolved as I'm unsure how i resolve this and I don't want to have to use the US format for my dates. Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:45:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081610#M162033</guid>
      <dc:creator>Vinxsta</dc:creator>
      <dc:date>2024-08-05T14:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: DATEVALUE function recognising date as mmddyyyy instead of ddmmyyyy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081642#M162034</link>
      <description>&lt;P&gt;You could convert the column to a date in power query by adding a custom column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date.FromText(Text.Middle([YourColumnName], 4, 4) &amp;amp; "-" &amp;amp; Text.Middle([YourColumnName], 2, 2) &amp;amp; "-" &amp;amp; Text.Start([YourColumnName], 2))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or in DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATE(
    MID([YourColumnName], 4, 4),   // Year
    MID([YourColumnName], 2, 2),   // Month
    MID([YourColumnName], 1, 2)    // Day
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 15:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081642#M162034</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-05T15:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: DATEVALUE function recognising date as mmddyyyy instead of ddmmyyyy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081670#M162035</link>
      <description>&lt;P&gt;The issue is that date column I'm using is already formatted as ddmmyyyy so i don't need to do anything with that column. The issue arises when i use datevalue&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 15:08:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081670#M162035</guid>
      <dc:creator>Vinxsta</dc:creator>
      <dc:date>2024-08-05T15:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: DATEVALUE function recognising date as mmddyyyy instead of ddmmyyyy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081813#M162042</link>
      <description>&lt;P&gt;The issue you're encountering is likely due to how DAX handles date literals, which are interpreted in the US date format (mm/dd/yyyy) by default, even if your data and locale are set to UK (dd/mm/yyyy).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 15:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEVALUE-function-recognising-date-as-mmddyyyy-instead-of/m-p/4081813#M162042</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-05T15:59:18Z</dc:date>
    </item>
  </channel>
</rss>

