<?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: DAX Newbie Count Rows by Date Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269608#M169306</link>
    <description>&lt;P&gt;Thank you again for your patience and prompt response.&lt;/P&gt;&lt;P&gt;Unfortunately, the measure did not give me the count I want.&lt;/P&gt;&lt;P&gt;I want a rolling count of the number of intakes that were not worked from month to month. For example, as of Nov 1, 2023, how many cases were overdue?&amp;nbsp; Then on Dec 1, 2023, how many overdue.&lt;/P&gt;&lt;P&gt;The measure when placed into the pivot table, did not provide the desired results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 19:38:00 GMT</pubDate>
    <dc:creator>Txtcher</dc:creator>
    <dc:date>2024-11-04T19:38:00Z</dc:date>
    <item>
      <title>DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269458#M169292</link>
      <description>&lt;P&gt;I am using Excel Power Query / Data Model and I am brand new to DAX.&lt;/P&gt;&lt;P&gt;I have 3 queries:&lt;/P&gt;&lt;P&gt;Date_table&lt;/P&gt;&lt;P&gt;CasesSent&lt;/P&gt;&lt;P&gt;CasesClosed&lt;/P&gt;&lt;P&gt;The CasesSent table has 2 dates, Sent Date &amp;amp; Due Date.&lt;/P&gt;&lt;P&gt;The Cases Closed table has 1 date, Entrance Date.&lt;/P&gt;&lt;P&gt;I have created the following 1-to-many relationships with the Date_table[Date]:&lt;/P&gt;&lt;P&gt;CasesSent[Sent Date]&lt;/P&gt;&lt;P&gt;CasesSent[Due By]&lt;/P&gt;&lt;P&gt;CasesClosed[Entrance Date]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; Creating these relationships automatically filters the pivot table if I use the date fields from my date table, correct?&lt;/P&gt;&lt;P&gt;I am creating a power pivot to determine the following monthly totals:&lt;/P&gt;&lt;P&gt;How many Cases Sent&lt;/P&gt;&lt;P&gt;How many Cases Closed&lt;/P&gt;&lt;P&gt;How many Cases Due&lt;/P&gt;&lt;P&gt;How many Cases Overdue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cases Due is the first issue. It gives me the same total as cases sent. So, I presume I need some kind of DAX calc to get this. Specifically, I need to count the number of cases with Due Dates that fall within the month = Date_table[Date].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next is how to determine Overdue Cases:&lt;/P&gt;&lt;P&gt;A monthly count of the number of overdue cases (past the due by date and entrance date is null, or &amp;gt; Date_table[Date]).&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; Due Date=5/3/24. Entrance Date = 6/25/24.&amp;nbsp; This case needs to be included in a count when the Date_table is filtered for 6/1/2024.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the little bit of studying I have done, I think this problem is known as an events in progress problem. And something&amp;nbsp; difficult for a newbie, but here I am.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance is greatly appreciated.&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>Mon, 04 Nov 2024 16:50:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269458#M169292</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T16:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269527#M169294</link>
      <description>&lt;P class=""&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740960" data-lia-user-login="Txtcher" class="lia-mention lia-mention-user"&gt;Txtcher&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;You're on the right track, and yes, this is similar to an "events in progress" problem. Let's go through each of the DAX measures you'll need in Power Pivot to answer your questions. Since you have a `Date_table` and relationships set up, you can use that to filter your calculations.&lt;/P&gt;&lt;P class=""&gt;1.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Count of Cases Sent&lt;BR /&gt;Since you have a relationship between `Date_table[Date]` and `CasesSent[Sent Date]`, you can create a simple DAX measure to count the cases sent within each month.&lt;/P&gt;&lt;P class=""&gt;DAX&lt;BR /&gt;Cases Sent = COUNTROWS(CasesSent)&lt;/P&gt;&lt;P class=""&gt;This measure will automatically count cases where `Sent Date` falls within the filtered date range from `Date_table`.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;2.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Count of Cases Closed&lt;BR /&gt;Similarly, with the relationship between `Date_table[Date]` and `CasesClosed[Entrance Date]`, you can count cases closed in each month.&lt;/P&gt;&lt;P class=""&gt;DAX&lt;BR /&gt;Cases Closed = COUNTROWS(CasesClosed)&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;3.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Count of Cases Due&lt;BR /&gt;For cases that are "Due," you need to count cases based on the `Due Date` in the `CasesSent` table, where `Due Date` falls within the current date filter. This is different from `Cases Sent`, so you’ll need a new measure:&lt;/P&gt;&lt;P class=""&gt;DAX&lt;BR /&gt;Cases Due =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(CasesSent),&lt;BR /&gt;FILTER(&lt;BR /&gt;CasesSent,&lt;BR /&gt;CasesSent[Due Date] &amp;gt;= MIN(Date_table[Date]) &amp;amp;&amp;amp;&lt;BR /&gt;CasesSent[Due Date] &amp;lt;= MAX(Date_table[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P class=""&gt;This measure counts cases where the `Due Date` falls within the current filter context from the `Date_table` (usually a month).&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;4.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Count of Overdue Cases&lt;BR /&gt;For overdue cases, you want to count cases where the `Due Date` has passed, and either the `Entrance Date` is blank (the case is not yet closed) or the `Entrance Date` is after the `Due Date`. To implement this, use:&lt;/P&gt;&lt;P class=""&gt;DAX&lt;BR /&gt;Overdue Cases =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(CasesSent),&lt;BR /&gt;FILTER(&lt;BR /&gt;CasesSent,&lt;BR /&gt;CasesSent[Due Date] &amp;lt; TODAY() &amp;amp;&amp;amp; -- Check if Due Date has passed&lt;BR /&gt;(&lt;BR /&gt;ISBLANK(RELATED(CasesClosed[Entrance Date])) || -- Check if Entrance Date is blank (not closed)&lt;BR /&gt;RELATED(CasesClosed[Entrance Date]) &amp;gt; CasesSent[Due Date] -- or if Entrance Date is after Due Date&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Explanation of Measures&lt;/P&gt;&lt;P class=""&gt;-&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;`Cases Sent` and `Cases Closed` : These count the rows in their respective tables based on the date relationship filters.&lt;BR /&gt;-&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;`Cases Due` : Counts rows in `CasesSent` where `Due Date` is within the month or date range selected in the `Date_table`.&lt;BR /&gt;-&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;`Overdue Cases` : Counts rows in `CasesSent` where:&lt;BR /&gt;- The `Due Date` is before today.&lt;BR /&gt;- Either the `Entrance Date` (from `CasesClosed` table) is blank (meaning the case is not yet closed), or the `Entrance Date` is after the `Due Date` (indicating it was closed late).&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Tips for Using These Measures in Power Pivot&lt;BR /&gt;- Make sure to use fields from the `Date_table` in your pivot table to filter by month, year, etc.&lt;BR /&gt;- If the calculations don't update as expected, confirm that your relationships between tables are set up correctly and that they are active.&lt;BR /&gt;- You might need to adjust the filter conditions if you have specific requirements on how overdue cases are calculated, especially for different time frames.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Please mark this as a solution , if its help you . Appreciate like on my post.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 17:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269527#M169294</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2024-11-04T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269553#M169297</link>
      <description>&lt;P&gt;Thank you so much for the response. But that last expression is not working.&lt;/P&gt;&lt;P&gt;First, I changed my approach because I decided&amp;nbsp; to combine Cases Sent and Cases Closed together into one table which is now called RS Cases.&lt;/P&gt;&lt;P&gt;To calculate the cases overdue (backlog), I tried modifying the formula as follows but it gives me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Backlog:=CALCULATE(&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;('RS Cases'),&lt;BR /&gt;FILTER(&lt;BR /&gt;('RS Cases'),&lt;BR /&gt;'RS Cases'[Due By]&amp;lt;TODAY() &amp;amp;&amp;amp; --Check if Due Date has passed&lt;BR /&gt;(&lt;BR /&gt;ISBLANK('RS Cases'[Entrance Date]) || --Check if Entrance Date is blank (not closed)&lt;BR /&gt;'RS Cases'[Entrance Date]&amp;gt;'RS Cases'[Due By] -- or if Entrance Date is after Due Date&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is this going to provide a count of cases that were overdue depending on the date filter of the pivot? (See my example in my op.)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:31:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269553#M169297</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269567#M169298</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there's an issue with the way COUNTROWS and FILTER are combined in the formula. In addition, to ensure that the measure is dynamic and responds to the date filter in your pivot, you’ll need to include context based on the filter context of the Date table.&lt;/P&gt;&lt;P&gt;Here’s a refined version of your Backlog measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;DAX&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Backlog = 
CALCULATE(
    COUNTROWS('RS Cases'),
    FILTER(
        'RS Cases',
        'RS Cases'[Due By] &amp;lt; TODAY() &amp;amp;&amp;amp; 
        (
            ISBLANK('RS Cases'[Entrance Date]) || 
            'RS Cases'[Entrance Date] &amp;gt; 'RS Cases'[Due By]
        )
    ),
    ALL('RS Cases'[Entrance Date])  -- This ignores the Entrance Date filter in the current context
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:48:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269567#M169298</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2024-11-04T18:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269576#M169299</link>
      <description>&lt;P&gt;Ok:&amp;nbsp; I fixed the Backlog formula (syntax mistakes), but it is definitely not giving me the right counts.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The grand total for backlog intakes (overdue intakes) is 6796.&lt;/P&gt;&lt;P&gt;I am kind of lost here trying to come up with a way to fix it. I can't get my head wrapped around the point-in-time count.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269576#M169299</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T18:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269580#M169302</link>
      <description>&lt;P&gt;Hummm... I am getting an error.&amp;nbsp; Here is what I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Backlog:=CALCULATE(&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;COUNTROWS(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;'RS Cases',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;'RS Cases'[Due By]&amp;lt;TODAY() &amp;amp;&amp;amp; --Check if Due Date has passed&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;ISBLANK('RS Cases'[Entrance Date]) || --Check if Entrance Date is blank&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;'RS Cases'[Entrance Date]&amp;gt;'RS Cases'[Due By] --Check if Entrance Date is past Due Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;ALL('RS Cases'[Entrance Date]) -- This ignores the Entrance Date filter in the current context&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The error is highlighting the ALL expression. Syntax error?&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Nov 2024 19:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269580#M169302</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T19:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269587#M169303</link>
      <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740960" data-lia-user-login="Txtcher" class="lia-mention lia-mention-user"&gt;Txtcher&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try This&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;DAX&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&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;LI-CODE lang="markup"&gt;Backlog:= CALCULATE(
    COUNTROWS(
        FILTER(
            ALL('RS Cases'), -- Remove all filters from the entire table
            'RS Cases'[Due By] &amp;lt; TODAY() &amp;amp;&amp;amp; -- Check if Due Date has passed
            (
                ISBLANK('RS Cases'[Entrance Date]) || -- Check if Entrance Date is blank
                'RS Cases'[Entrance Date] &amp;gt; 'RS Cases'[Due By] -- Check if Entrance Date is past Due Date
            )
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes made:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;ALL('RS Cases'): Removed filters from the entire table instead of just the column. This is generally safer as it allows for broader context removal.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;H3&gt;Additional Considerations:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;If you specifically want to keep filters on other columns while ignoring just the Entrance Date, you can adjust the logic depending on your needs.&lt;/LI&gt;&lt;LI&gt;If this doesn't resolve the error, please provide more details about the context in which this measure is being used, such as the specific error message or the model structure, so I can assist further!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&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>Mon, 04 Nov 2024 19:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269587#M169303</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2024-11-04T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269608#M169306</link>
      <description>&lt;P&gt;Thank you again for your patience and prompt response.&lt;/P&gt;&lt;P&gt;Unfortunately, the measure did not give me the count I want.&lt;/P&gt;&lt;P&gt;I want a rolling count of the number of intakes that were not worked from month to month. For example, as of Nov 1, 2023, how many cases were overdue?&amp;nbsp; Then on Dec 1, 2023, how many overdue.&lt;/P&gt;&lt;P&gt;The measure when placed into the pivot table, did not provide the desired results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 19:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269608#M169306</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T19:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269690#M169311</link>
      <description>&lt;P&gt;I as getting closer with this, but it still is not right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my table, I have a Case Sent Date.&amp;nbsp; So in order to get a rolling count of overdue intakes, the Sent Date has to be between the table date, and then the entrance date would be null, or greater than the max sent date.&amp;nbsp; But, the count is still not working quite right with the following formula. It gets me the correct grand total, but not the monthly count&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":persevering_face:"&gt;😣&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Backlog:=CALCULATE(&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;'RS Cases',&lt;BR /&gt;'RS Cases'[Due By]&amp;lt;Max(Date_Table[Date] )&amp;amp;&amp;amp;&lt;BR /&gt;(&lt;BR /&gt;ISBLANK('RS Cases'[Entrance Date]) ||&lt;BR /&gt;'RS Cases'[Entrance Date]&amp;gt;Max(Date_Table[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the monthly count for cases due is not working correctly with this measure either:&lt;/P&gt;&lt;P&gt;Cases Due:=CALCULATE(&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;'RS Cases',&lt;BR /&gt;'RS Cases'[Due By] &amp;gt;=MIN(Date_Table[Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'RS Cases'[Due By] &amp;lt;=mAX(Date_Table[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;And I am trying to count the cases closed (if they have an entrance date, they are considered closed), but this is not giving me correct monthly counts either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frustrating! I am so close and I am completely stumped as to why this is not working.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 21:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269690#M169311</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269715#M169313</link>
      <description>&lt;P&gt;I have reviewed the measures created so far and NONE of them work except for the first one: Cases Sent and all that one does is count the rows without any filters.&amp;nbsp; All of the other measures do not work . Some of them get the first count correct, but the next month's count is completely wrong which is mind boggling. And this measure doesn't even get the first count correct:&lt;/P&gt;&lt;P&gt;Cases Closed:=CALCULATE(&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER('RS Cases',&lt;BR /&gt;'RS Cases'[Entrance Date]&amp;gt;=Min(Date_Table[Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'RS Cases'[Entrance Date]&amp;lt;=Max(Date_Table[Date])&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 21:35:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4269715#M169313</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-04T21:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Newbie Count Rows by Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4270605#M169355</link>
      <description>&lt;P&gt;Posting to state that after much research, I have solved the problem.&amp;nbsp; I have one date table that has multiple relationships with the other table. When creating formulas involving "inactive" relationships, I needed to active that relationship.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&amp;nbsp;Cases Due:=CALCULATE(&lt;BR /&gt;COUNTROWS('RS Cases'),USERELATIONSHIP(Date_Table[Date],'RS Cases'[Due By]))&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 11:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Newbie-Count-Rows-by-Date-Filter/m-p/4270605#M169355</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-05T11:32:25Z</dc:date>
    </item>
  </channel>
</rss>

