<?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: Days between two dates columns in Service</title>
    <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/276326#M33232</link>
    <description>&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't reproduce your problem. Ar your columns defined as dates?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 18:09:04 GMT</pubDate>
    <dc:creator>dramus</dc:creator>
    <dc:date>2017-10-11T18:09:04Z</dc:date>
    <item>
      <title>Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7567#M3500</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a dashboard with Power BI Desktop.&lt;/P&gt;&lt;P&gt;I've connected a SQL server database which has two date fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Transactiondate]&lt;/P&gt;&lt;P&gt;[Closed]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is get the difference between these two in days.&lt;/P&gt;&lt;P&gt;I tried a DAX measure to find the difference( Closed - Transactiondate), but this gives me a weird date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7567#M3500</guid>
      <dc:creator>Coelijoeli</dc:creator>
      <dc:date>2015-09-29T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7577#M3503</link>
      <description>&lt;P&gt;diff = 1.0*([Closed]-[TransactionDate])&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7577#M3503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7588#M3508</link>
      <description>&lt;P&gt;Are you trying to do this calculation in a measure or a calcluated column?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:28:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7588#M3508</guid>
      <dc:creator>Akahn</dc:creator>
      <dc:date>2015-09-29T14:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7597#M3510</link>
      <description>&lt;P&gt;Hi Coelijoeli,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you do the difference, Power BI will keep the same format. Then you have to convert your result in order to obtain what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can add format function, or you can choose a number format into the top ribbon.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7597#M3510</guid>
      <dc:creator>Rémi</dc:creator>
      <dc:date>2015-09-29T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7675#M3528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a new measure with the dax formula by&amp;nbsp;@Eno1978&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:03:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7675#M3528</guid>
      <dc:creator>Haegi</dc:creator>
      <dc:date>2015-09-30T12:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7704#M3531</link>
      <description>&lt;P&gt;There's also the DATEDIFF DAX function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Days between = DATEDIFF([Transactiondate],[Closed],DAY)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/7704#M3531</guid>
      <dc:creator>dramus</dc:creator>
      <dc:date>2015-09-30T17:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18155#M5409</link>
      <description>&lt;P&gt;Not working for me! I' am trying to take no.of days between close_date and start_date, it throws an error which says-The third argument Interval can only be one of the following: YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND...&lt;/P&gt;&lt;P&gt;I' am using the following expression&lt;/P&gt;&lt;P&gt;DaysLenght = DATEDIFF(AA_SALES_FACT[CLOSE_DATE],(AA_SALES_FACT[START_DATE]),DAY())&lt;/P&gt;&lt;P&gt;Request all gurus to kindly help me in fixing the above. I need to take the difference between Close_Date and Create_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 08:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18155#M5409</guid>
      <dc:creator>gkhare</dc:creator>
      <dc:date>2016-02-10T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18178#M5414</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4709" data-lia-user-login="gkhare" class="lia-mention lia-mention-user"&gt;gkhare﻿&lt;/a&gt;&amp;nbsp;there is a mistake in your formula the third argument to DATEDIFF is Interval not function. Use following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DaysLenght = DATEDIFF(AA_SALES_FACT[CLOSE_DATE],AA_SALES_FACT[&lt;/SPAN&gt;&lt;SPAN&gt;START_DATE],DAY)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:48:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18178#M5414</guid>
      <dc:creator>HarrisMalik</dc:creator>
      <dc:date>2016-02-10T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18179#M5415</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4709" data-lia-user-login="gkhare" class="lia-mention lia-mention-user"&gt;gkhare﻿&lt;/a&gt;&amp;nbsp;there is a mistake in your formula the third argument to DATEDIFF is Interval not function. Use following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DaysLenght = DATEDIFF(AA_SALES_FACT[CLOSE_DATE],AA_SALES_FACT[&lt;/SPAN&gt;&lt;SPAN&gt;START_DATE],DAY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit: I do not know your data model just to be sure the first argument of DATEDIFF() is Start Date, second is End date and third is interval i.e. DAY, MONTH,YEAR etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATEDIFF(&amp;lt;start_date&amp;gt;, &amp;lt;end_date&amp;gt;, &amp;lt;interval&amp;gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:51:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/18179#M5415</guid>
      <dc:creator>HarrisMalik</dc:creator>
      <dc:date>2016-02-10T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/29441#M7843</link>
      <description>&lt;P&gt;Thanks for posting - just what I was looking for&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:47:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/29441#M7843</guid>
      <dc:creator>WendyMc</dc:creator>
      <dc:date>2016-04-15T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/100386#M16729</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've used your suggestion&amp;nbsp;which seem to be good but something is wrong there.&lt;/P&gt;&lt;P&gt;Have you ever seen like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Start date&lt;/TD&gt;&lt;TD&gt;End date&lt;/TD&gt;&lt;TD&gt;No of days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016.12.09&lt;/TD&gt;&lt;TD&gt;2017.09.04&lt;/TD&gt;&lt;TD&gt;269&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016.12.09&lt;/TD&gt;&lt;TD&gt;2017.09.01&lt;/TD&gt;&lt;TD&gt;532&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2016.12.09&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2017.08.31&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;1855&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016.12.09&lt;/TD&gt;&lt;TD&gt;2017.08.10&lt;/TD&gt;&lt;TD&gt;244&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2016.12.09&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2017.07.31&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;1170&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016.12.09&lt;/TD&gt;&lt;TD&gt;2017.07.13&lt;/TD&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2016.12.09&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2017.06.30&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;1015&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the &lt;EM&gt;end date&lt;/EM&gt; is the last day of the month it gives wrong result. :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 12:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/100386#M16729</guid>
      <dc:creator>MAPA</dc:creator>
      <dc:date>2016-12-09T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/162101#M22655</link>
      <description>&lt;P&gt;Hello, what is the expresion you used??&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/162101#M22655</guid>
      <dc:creator>amarines</dc:creator>
      <dc:date>2017-04-20T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/276325#M33231</link>
      <description>&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't reproduce your problem. Ar your columns defined as dates?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:08:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/276325#M33231</guid>
      <dc:creator>dramus</dc:creator>
      <dc:date>2017-10-11T18:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/276326#M33232</link>
      <description>&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't reproduce your problem. Ar your columns defined as dates?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/276326#M33232</guid>
      <dc:creator>dramus</dc:creator>
      <dc:date>2017-10-11T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/444407#M46995</link>
      <description>&lt;P&gt;&amp;nbsp;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we calculate the interval between two dates, while excluding the weekends and US holidays. We need this interval to be calculated only for business days, excluding weekends and holidays to have a good measure of performance. Any help is much appreciated. BTW, the interval should be calculated in hours, NOT days or months.&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 16:06:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/444407#M46995</guid>
      <dc:creator>peymanrmt</dc:creator>
      <dc:date>2018-06-20T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates columns</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/444408#M46996</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we calculate the time interval in hours between two dates while excluding the weekends and US holidays in the calendar? Any help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 16:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Days-between-two-dates-columns/m-p/444408#M46996</guid>
      <dc:creator>peymanrmt</dc:creator>
      <dc:date>2018-06-20T16:10:28Z</dc:date>
    </item>
  </channel>
</rss>

