<?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: Count rows based on Two dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870166#M7164</link>
    <description>&lt;P&gt;Take a look at the function CALCULATE() it allows you to add more than one filter expression&lt;BR /&gt;VAR row_count = CALCULATE(COUNTROWS(table),&lt;SPAN&gt;startdate &amp;gt;= '1-8-2019'&amp;nbsp;,end date &amp;lt;= '31-8-2019')&lt;BR /&gt;this example assumes that there are not external filters on your table, if there are you might want to include a filter expression using ALL()---&amp;gt; ALL(table)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 01:46:55 GMT</pubDate>
    <dc:creator>kentyler</dc:creator>
    <dc:date>2019-12-10T01:46:55Z</dc:date>
    <item>
      <title>Count rows based on Two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/869661#M7149</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data of Start date and End date and product id. I want to calcuate count of product Id based condition on start date and end date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example- I want to calcuated count&lt;/P&gt;&lt;P&gt;select count (*) from tabel&lt;/P&gt;&lt;P&gt;where startdate &amp;gt;= '1-8-2019' and end date &amp;lt;= '31-8-2019'&lt;/P&gt;&lt;P&gt;&amp;nbsp;So want to calculate count for every month Jan to Dec based on Start date and end date.&lt;/P&gt;&lt;P&gt;Could you please give some idea about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:30:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/869661#M7149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-09T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows based on Two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870166#M7164</link>
      <description>&lt;P&gt;Take a look at the function CALCULATE() it allows you to add more than one filter expression&lt;BR /&gt;VAR row_count = CALCULATE(COUNTROWS(table),&lt;SPAN&gt;startdate &amp;gt;= '1-8-2019'&amp;nbsp;,end date &amp;lt;= '31-8-2019')&lt;BR /&gt;this example assumes that there are not external filters on your table, if there are you might want to include a filter expression using ALL()---&amp;gt; ALL(table)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 01:46:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870166#M7164</guid>
      <dc:creator>kentyler</dc:creator>
      <dc:date>2019-12-10T01:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows based on Two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870341#M7170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have to do it for all months. I am having data more than 3 years so i want to visuals year wise start date and end date values in X axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&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>Tue, 10 Dec 2019 06:33:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870341#M7170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-10T06:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows based on Two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870547#M7179</link>
      <description>&lt;P&gt;Got solution from blow link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=2532cdc3-2024-447d-bdb1-6b85a5178869&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=2532cdc3-2024-447d-bdb1-6b85a5178869&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 09:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-based-on-Two-dates/m-p/870547#M7179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-10T09:09:21Z</dc:date>
    </item>
  </channel>
</rss>

