<?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 Difference between two dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022640#M45103</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello good people, now I am reading "Definitive Guide to dax - Alberto Ferrari". The first image shows the the days between delivery dates and order dates. The 2nd image is the practice file done by me and what you can see is the negative differences. I am working with the same data been used in this book but it's not working for me&amp;nbsp;It's been 3 days I am trying everything to&amp;nbsp; get the accurate result, but I failed. I can't understand what the fault is in tha dataset. For your help, I've provided the file to go it over.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1R43cXcP0Fa1jdgbXVvq6FhMv2HrYvSWp/view?usp=sharing " target="_self"&gt;https://drive.google.com/file/d/1R43cXcP0Fa1jdgbXVvq6FhMv2HrYvSWp/view?usp=sharing &lt;/A&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 05:34:44 GMT</pubDate>
    <dc:creator>Anik</dc:creator>
    <dc:date>2021-08-18T05:34:44Z</dc:date>
    <item>
      <title>Difference between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022640#M45103</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello good people, now I am reading "Definitive Guide to dax - Alberto Ferrari". The first image shows the the days between delivery dates and order dates. The 2nd image is the practice file done by me and what you can see is the negative differences. I am working with the same data been used in this book but it's not working for me&amp;nbsp;It's been 3 days I am trying everything to&amp;nbsp; get the accurate result, but I failed. I can't understand what the fault is in tha dataset. For your help, I've provided the file to go it over.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1R43cXcP0Fa1jdgbXVvq6FhMv2HrYvSWp/view?usp=sharing " target="_self"&gt;https://drive.google.com/file/d/1R43cXcP0Fa1jdgbXVvq6FhMv2HrYvSWp/view?usp=sharing &lt;/A&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 05:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022640#M45103</guid>
      <dc:creator>Anik</dc:creator>
      <dc:date>2021-08-18T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022665#M45106</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316745" data-lia-user-login="Anik" class="lia-mention lia-mention-user"&gt;Anik&lt;/a&gt; , have tried datediff &lt;/P&gt;
&lt;P&gt;example new column&lt;/P&gt;
&lt;P&gt;new column = datediff ([order date], [Delivery Date],day)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 05:57:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022665#M45106</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-18T05:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022699#M45109</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;, tried but same result, negative difference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 06:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022699#M45109</guid>
      <dc:creator>Anik</dc:creator>
      <dc:date>2021-08-18T06:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022809#M45115</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316745" data-lia-user-login="Anik" class="lia-mention lia-mention-user"&gt;Anik&lt;/a&gt; , I tried this in the file as new column , see all +ive &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DaysToDeliver = if(Sales[Order Date]&amp;lt;Sales[Delivery Date], datediff( Sales[Order Date],Sales[Delivery Date] ,day ) ,datediff( Sales[Delivery Date] ,Sales[Order Date],day ))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 07:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-dates/m-p/2022809#M45115</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-18T07:02:41Z</dc:date>
    </item>
  </channel>
</rss>

