<?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 Calculate how many items are between two dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1431298#M26692</link>
    <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me with this. I cannot seem to get the right formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- 1st tabel contains a column with a datetime (creationDate) and a column with a locationname (name)&lt;/P&gt;&lt;P&gt;- 2nd table contains two columns with a date time (startDate &amp;amp; endDate) and a column with a locationname (name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a matrix where I show:&lt;/P&gt;&lt;P&gt;- Rows: Locations (from table 1)&lt;/P&gt;&lt;P&gt;- Columns: Month (the matrix is filtered by year, i.e. 2020)&lt;/P&gt;&lt;P&gt;- Values: Here I want to show how many rows from the 2nd table, from which the startDate &amp;amp; endDate are in that month of the Matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if a record in table 2 had a startDate of 02-11-2019 and an endDate of 15-02-2020, it had to be counted in the maxtrix value for januari and febrari of 2020, but not for march 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I explained correctly, if not: Let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate all the help you can give me.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 21:00:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-13T21:00:33Z</dc:date>
    <item>
      <title>Calculate how many items are between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1431298#M26692</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me with this. I cannot seem to get the right formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- 1st tabel contains a column with a datetime (creationDate) and a column with a locationname (name)&lt;/P&gt;&lt;P&gt;- 2nd table contains two columns with a date time (startDate &amp;amp; endDate) and a column with a locationname (name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a matrix where I show:&lt;/P&gt;&lt;P&gt;- Rows: Locations (from table 1)&lt;/P&gt;&lt;P&gt;- Columns: Month (the matrix is filtered by year, i.e. 2020)&lt;/P&gt;&lt;P&gt;- Values: Here I want to show how many rows from the 2nd table, from which the startDate &amp;amp; endDate are in that month of the Matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if a record in table 2 had a startDate of 02-11-2019 and an endDate of 15-02-2020, it had to be counted in the maxtrix value for januari and febrari of 2020, but not for march 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I explained correctly, if not: Let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate all the help you can give me.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 21:00:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1431298#M26692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-13T21:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate how many items are between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1431526#M26696</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This looks like an event in progess problem (not really sure). Take a look&amp;nbsp; at this aritcle&amp;nbsp;&lt;A href="https://www.daxpatterns.com/events-in-progress/" target="_blank"&gt;https://www.daxpatterns.com/events-in-progress/&lt;/A&gt;&amp;nbsp;Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reynaldo&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 00:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1431526#M26696</guid>
      <dc:creator>reynaldo_malave</dc:creator>
      <dc:date>2020-10-14T00:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate how many items are between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1432827#M26719</link>
      <description>&lt;P&gt;Thanks for taking the time to give me an reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262058" data-lia-user-login="reynaldo_malave" class="lia-mention lia-mention-user"&gt;reynaldo_malave&lt;/a&gt;!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link you provided showed a more elegant solution than I had come up with &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It alo turned out that my data sources do not always have alle the information I expected. Therefore the results of my measures were not what I expected. At first I thought my measures were not correct, but it turned out the be a little of both&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 09:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-how-many-items-are-between-two-dates/m-p/1432827#M26719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T09:45:12Z</dc:date>
    </item>
  </channel>
</rss>

