<?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: Calculate dates between 2 dates but exclude Start / End date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269743#M21366</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;use Date.AddDays ;&lt;/P&gt;&lt;P&gt;Table.AddColumn(#"Renamed Columns", "Work Days", each { Number.From(Date.AddDays([First Date],1))..Number.From(Date.AddDays([Last Date],-1)) })&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 22:07:36 GMT</pubDate>
    <dc:creator>arq52</dc:creator>
    <dc:date>2020-08-03T22:07:36Z</dc:date>
    <item>
      <title>Calculate dates between 2 dates but exclude Start / End date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269351#M21352</link>
      <description>&lt;P&gt;I have an interesting ask, I have a code that I use to find dates between 2 given dates;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"Renamed Columns", "Work Days", each { Number.From([First Date])..Number.From([Last Date]) })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do, is extract the dates between the 2 columns (First Date, Last Date) and exclude those given dates.&amp;nbsp; For example if the Start Date is 1/1/2020 and the Last Date is 1/10/2020.&amp;nbsp; I only want to return the dates 1/2/2020-1/9/2020 in my data.&amp;nbsp; Is this possible?&amp;nbsp; Currently it expands all rows which is fine but it includes the start and last date; however these dates are never the same and can change based on project length which is why I can't use any workday formulas.&amp;nbsp; The exlusion doesn't have to be within the same formula, I can always add another step after if that's easier.&amp;nbsp; I'm just stumped on how to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 18:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269351#M21352</guid>
      <dc:creator>TMO_KY</dc:creator>
      <dc:date>2020-08-03T18:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate dates between 2 dates but exclude Start / End date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269371#M21354</link>
      <description>&lt;P&gt;*Update*&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I ended up creating an additional custom column that uses a filter with a true false statement then filtered out the "true's".&amp;nbsp; This works but if anyone has a better workaround with less "steps" I'd appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 18:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269371#M21354</guid>
      <dc:creator>TMO_KY</dc:creator>
      <dc:date>2020-08-03T18:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate dates between 2 dates but exclude Start / End date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269410#M21357</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237290" data-lia-user-login="TMO_KY" class="lia-mention lia-mention-user"&gt;TMO_KY&lt;/a&gt; , refer if this file can help a bit &lt;A href="https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 18:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269410#M21357</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-03T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate dates between 2 dates but exclude Start / End date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269743#M21366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;use Date.AddDays ;&lt;/P&gt;&lt;P&gt;Table.AddColumn(#"Renamed Columns", "Work Days", each { Number.From(Date.AddDays([First Date],1))..Number.From(Date.AddDays([Last Date],-1)) })&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 22:07:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1269743#M21366</guid>
      <dc:creator>arq52</dc:creator>
      <dc:date>2020-08-03T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate dates between 2 dates but exclude Start / End date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1271801#M21443</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp; Much appreciated!&amp;nbsp; Now I have less steps in my query.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 14:07:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-dates-between-2-dates-but-exclude-Start-End-date/m-p/1271801#M21443</guid>
      <dc:creator>TMO_KY</dc:creator>
      <dc:date>2020-08-04T14:07:02Z</dc:date>
    </item>
  </channel>
</rss>

