<?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: How to count records after applying a filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3720856#M144880</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your response.&lt;BR /&gt;&lt;BR /&gt;I have created the "&lt;STRONG&gt;skipped_stages.pbix&lt;/STRONG&gt;" file and the "&lt;STRONG&gt;skipped_stages.xlsx&lt;/STRONG&gt;" file. The .pbix file contains 3 datasets: &lt;EM&gt;&lt;STRONG&gt;deal_stage_hist_sample&lt;/STRONG&gt; &lt;/EM&gt;(similar to the one mentioned in the question above), &lt;EM&gt;&lt;STRONG&gt;deal_stage_hist&lt;/STRONG&gt; &lt;/EM&gt;and &lt;EM&gt;&lt;STRONG&gt;stages_info&lt;/STRONG&gt;&lt;/EM&gt;. A simple model has been created.&amp;nbsp;&lt;BR /&gt;The "&lt;STRONG&gt;skipped_stages.xlsx&lt;/STRONG&gt;" file contains information about the deal_stage_hist&amp;nbsp;dataset, and the calculations and expected results for the periods September 2023, October 2023, November 2023, December 2023, and January 2024. There is a tab named "sample" that contains information about the calculation and the expected result for a small dataset&amp;nbsp;deal_stage_hist_sample.&lt;BR /&gt;&lt;BR /&gt;If there are any issues with opening the file, please let me know.&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1y_6-ga4lOnqR16b6LvH9CXWz_n4qSZI1/edit?usp=drive_link&amp;amp;ouid=109746065046494360712&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;skipped_stages.xlsx&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1SHytENK5bzaoE2RFX78XsDJF1llRMjxG/view?usp=drive_link" target="_self"&gt;skipped_stages.pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2024 00:12:03 GMT</pubDate>
    <dc:creator>marypal</dc:creator>
    <dc:date>2024-02-24T00:12:03Z</dc:date>
    <item>
      <title>How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3717495#M144724</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Could you please help me to write DAX formula to calculate the number of deals that skipped stages in the reporting period. The logic is the following.&lt;BR /&gt;&lt;BR /&gt;We have a table&amp;nbsp;&lt;STRONG&gt;deal_stage_hist,&lt;/STRONG&gt; that contains a history of stages for each deal. last_modified_date is a date when a deal goes to the next stage.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Our &lt;STRONG&gt;reporting period&lt;/STRONG&gt; is &lt;STRONG&gt;01/01/2024 - 31/01/2024&lt;/STRONG&gt;.&lt;BR /&gt;We also have&amp;nbsp;&lt;STRONG&gt;stages_info&lt;/STRONG&gt; table that contains information about stages and their order.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sometimes a deal can skip a stage or can return to a previous stage.&lt;BR /&gt;From &lt;STRONG&gt;deal_stage_hist&lt;/STRONG&gt; we can see that:&lt;BR /&gt;- Deal1 goes to stage4 on 29/01/2024 (that is within our reporting period). This means that in our reporting period this deal skipped stage0, stage1, stage2, stage3.&lt;BR /&gt;- Deal2 goes to stage6 on 22/01/2024 (that is within our reporting period). This means that in our reporting period this deal skipped stage0, stage1, stage2, stage3, stage4, stage5.&lt;BR /&gt;- Deal3 goes to stage1 on 29/01/2024 (that is within our reporting period). This means that in our reporting period this deal skipped stage0.&lt;BR /&gt;- Deal4 goes to stage5 on 22/01/2024 (that is within our reporting period). This means that in our reporting period this deal skipped stage0, stage1, stage2, stage3, stage4.&lt;BR /&gt;- Deal5 goes to stage0 on 22/01/2024 and then to stage3 on the same date (that is within our reporting period). This means that in our reporting period this deal skipped stage1, stage2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to count for each deal a number of skipped stages for the reporting period.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am a newby in Power BI, so I am asking for help...&lt;BR /&gt;I created the following measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Count Deals with Skipped Stages =&lt;/P&gt;&lt;P&gt;VAR MinModifDateInRepPeriod = CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MIN(deal_stage_hist[last_modified_date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; KEEPFILTERS(DATESBETWEEN(deal_stage_hist[last_modified_date],[Reporting Period Start Date], [Reporting Period End Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;VAR InputStage = CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MIN(deal_stage_hist[deal_stage]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deal_stage_hist[last_modified_date]=MinModifDateInRepPeriod&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;VAR MinStageOrderInRepPeriod = CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MIN(stages_info[stage_display_order]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stages_info[stage_id]=InputStage&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;VAR CreatedStages = DISTINCT(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALCULATETABLE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VALUES(stages_info[stage_display_order]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deal_stage_hist,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deal_stage_hist[last_modified_date] &amp;gt;= [Reporting Period Start Date] &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deal_stage_hist[last_modified_date] &amp;lt;= [Reporting Period End Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DISTINCTCOUNT(deal_stage_hist[deal_id]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VALUE(stages_info[stage_display_order])&amp;lt;MinStageOrderInRepPeriod&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT stages_info[stage_display_order] IN CreatedStages&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;The return value does not work. Could you please help me to write the correct DAX formula for this example?&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3717495#M144724</guid>
      <dc:creator>marypal</dc:creator>
      <dc:date>2024-02-22T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3718424#M144779</link>
      <description>&lt;P&gt;you cannot measure a measure directly, you need to materialize it first.&amp;nbsp; Usually via ADDCOLUMNS(SUMMARIZECOLUMNS())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 00:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3718424#M144779</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-23T00:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3720856#M144880</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your response.&lt;BR /&gt;&lt;BR /&gt;I have created the "&lt;STRONG&gt;skipped_stages.pbix&lt;/STRONG&gt;" file and the "&lt;STRONG&gt;skipped_stages.xlsx&lt;/STRONG&gt;" file. The .pbix file contains 3 datasets: &lt;EM&gt;&lt;STRONG&gt;deal_stage_hist_sample&lt;/STRONG&gt; &lt;/EM&gt;(similar to the one mentioned in the question above), &lt;EM&gt;&lt;STRONG&gt;deal_stage_hist&lt;/STRONG&gt; &lt;/EM&gt;and &lt;EM&gt;&lt;STRONG&gt;stages_info&lt;/STRONG&gt;&lt;/EM&gt;. A simple model has been created.&amp;nbsp;&lt;BR /&gt;The "&lt;STRONG&gt;skipped_stages.xlsx&lt;/STRONG&gt;" file contains information about the deal_stage_hist&amp;nbsp;dataset, and the calculations and expected results for the periods September 2023, October 2023, November 2023, December 2023, and January 2024. There is a tab named "sample" that contains information about the calculation and the expected result for a small dataset&amp;nbsp;deal_stage_hist_sample.&lt;BR /&gt;&lt;BR /&gt;If there are any issues with opening the file, please let me know.&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1y_6-ga4lOnqR16b6LvH9CXWz_n4qSZI1/edit?usp=drive_link&amp;amp;ouid=109746065046494360712&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;skipped_stages.xlsx&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1SHytENK5bzaoE2RFX78XsDJF1llRMjxG/view?usp=drive_link" target="_self"&gt;skipped_stages.pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3720856#M144880</guid>
      <dc:creator>marypal</dc:creator>
      <dc:date>2024-02-24T00:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3720875#M144883</link>
      <description>&lt;LI-CODE lang="markup"&gt;I need to count for each deal a number of skipped stages for the reporting period.&lt;/LI-CODE&gt;
&lt;P&gt;Is that all or do you need a row sum as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Note the DQ issue for Deal60&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3720875#M144883</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-24T00:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3722315#M144967</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;BR /&gt;&lt;BR /&gt;Apologies, perhaps I did not explain the task in enough detail... In my Excel file&amp;nbsp; I provoded the calculation. If we consider September 2023 as a reporting period and look at Deal27, for example, we can see that stage6 was created. I flagged created stages as &lt;STRONG&gt;v&lt;/STRONG&gt;, and skipped as &lt;STRONG&gt;1&lt;/STRONG&gt;. This means that we consider that stage0, stage1, stage2, stage3, stage4, stage5 were skipped. For Deal45 we see that stage0 and stage6 were created druring the reporting period, we consider that stage1, stage2, stage3, stage4, stage5 were skipped. For Deal48 stage0 and stage5 were created during the reporting period, so we consider that stage1, stage2, stage3, stage4 were skipped. For Deal49 stage0 was created, and as we do not have any stages before this one, we consider that for this deal there are no stages that were skipped. For Deal60 we have a situation when stage0 and stage5 were created twice during the reporting period. Such situations can occur.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;We consider not created stages during the reporting period, but only skipped stages: stages between created stages or before created stages.&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mentioned in my question "I need to count for each deal a number of skipped stages for the reporting period". Could you please tell me if it is possible to display the result as "Number of deals that skipped the particular stage"? For the below table (reporting period = Sep 2023) we have:&lt;BR /&gt;- there are 15 deals that skipped stage0 (we sum up only 1s for stage0)&lt;BR /&gt;- there are 38 deals that skipped stage1 (we sum up only 1s for stage1)&lt;BR /&gt;...&lt;BR /&gt;- there are 15 deals that skipped stage5 (we sum up only 1s for stage5)&lt;BR /&gt;As stage6 is the last one, we do not consider this stage as skipped.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 22:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3722315#M144967</guid>
      <dc:creator>marypal</dc:creator>
      <dc:date>2024-02-25T22:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3722365#M144968</link>
      <description>&lt;P&gt;I tihink your date range filter is problematic as you don't really know of stages were really skipped, or if they just happen to be outside of the filter range.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 00:06:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3722365#M144968</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-26T00:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3723548#M145006</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It may sound strange, but this is the logic of the report.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We filter only the last_modified_date that falls within the reporting period and consider these stages as the starting point. For example, for &lt;STRONG&gt;Deal27&lt;/STRONG&gt;, &lt;EM&gt;stage0&lt;/EM&gt; was created on 19.05.2023 (last_modified_date is 19.05.2023), &lt;EM&gt;stage3&lt;/EM&gt; was created on 02.06.2023, and &lt;EM&gt;stage6&lt;/EM&gt; was created on 29.09.2023.&lt;/P&gt;&lt;P&gt;If we consider &lt;EM&gt;01.06.2023 - 30.06.2023&lt;/EM&gt; as the reporting period, then we see that only stage3 was created within that period (we look only back, not in the future). So, stage3 is the starting point, and we consider that stage0, stage1, and stage2 were skipped for the reporting period 01.06.2023 - 30.06.2023 (although in reality we see that stage0 was created on 19.05.2023 outside the reporting period).&lt;/P&gt;&lt;P&gt;If we consider &lt;EM&gt;01.09.2023 - 30.09.2023&lt;/EM&gt; as the reporting period, then we see that only stage6 was created within that period. So, stage6 is the starting point, and we consider that stage0, stage1, stage2, stage3, stage4, and stage5 were skipped for the reporting period 01.09.2023 - 30.09.2023 (although in reality we see that stage0 was created on 19.05.2023 and stage3 was created on 02.06.2023).&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If we consider &lt;STRONG&gt;Deal39&lt;/STRONG&gt; and the reporting period 01.10.2023 - 31.10.2023, we see that in October 2023 &lt;EM&gt;stage1 &lt;/EM&gt;was created on 11.10.2023, &lt;EM&gt;stage5&lt;/EM&gt; was created on 11.10.2023, and again &lt;EM&gt;stage1&lt;/EM&gt; was created on 11.10.2023 (at different times of the day, which seems to be incorrect, but we have such cases in reality), and then &lt;EM&gt;stage5&lt;/EM&gt; was created on 23.10.2023. This means we consider all stages before stage5, excluding stage1 (because it was created in October 2023), to be skipped. So, stage0, stage2, stage3, and stage4 are considered to be skipped for the period &lt;EM&gt;01.10.2023 - 31.10.2023&lt;/EM&gt;.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 10:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3723548#M145006</guid>
      <dc:creator>marypal</dc:creator>
      <dc:date>2024-02-26T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3723823#M145021</link>
      <description>&lt;P&gt;I cannot agree with the premise. In our company we use field event history data and Sankey charts to describe what really happened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope someone else can help you further.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 12:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3723823#M145021</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-26T12:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records after applying a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3761059#M146736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I had no chance to reply sooner, but now I want to express my gratitude for your help! I made some adjustments to your formula and achieved the desired result. Here is the solution.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 15:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-records-after-applying-a-filter/m-p/3761059#M146736</guid>
      <dc:creator>marypal</dc:creator>
      <dc:date>2024-03-13T15:13:56Z</dc:date>
    </item>
  </channel>
</rss>

