<?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: Cumulative count with date filters - got stuck and desperate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844594#M90983</link>
    <description>&lt;P&gt;It has counted 9 instead of 18 for August and didn't do cumulative count for subsequent months, i.e., the same project count wasn't returned for September or October. And it counted the project which has no part # added for some reason.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 09:21:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-17T09:21:36Z</dc:date>
    <item>
      <title>Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843747#M90916</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hey guys, so, long story short:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I need a bar chart that will count the number of projects over time with several conditions. Below are the tables that are needed (for the sake of simplicity let's focus on project name 976):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;1) Table 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-center"&gt;&lt;SPAN&gt;We can see the project's name and the date its dashboard was created&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;2) Table 2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;SPAN&gt;We have a table with the project's name and the date when a part number for this project was added.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Now, for the main part:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;img /&gt;&lt;P class="lia-align-center"&gt; &lt;SPAN&gt;we can see that the dashboard for project 976 was created in August 2022&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;SPAN&gt;we can see that parts were added to this project, both before AND in the same month the dashboard was created&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt; - to calculate the cumulative number of projects (starting from the earliest date the dashboard was created) from table 1, &lt;STRONG&gt;BUT&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;There should be AT LEAST ONE part # that was added BEFORE or IN THE SAME MONTH the dashboard for the project was created. - So, the bar chart will count project 976 - because it has both dashboard created in August and at least one part that was added before or in the same month.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Now, let's imagine that project 976 had its dashboard created in August 2022, &lt;STRONG&gt;but a part # was firstly added in September 2022&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;That means that project 976 &lt;U&gt;should not&lt;/U&gt; be counted for August 2022, because part # was added &lt;U&gt;in the next month&lt;/U&gt;. 976 &lt;U&gt;would be counted on the chart starting September 2022.&lt;/U&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;If a project has no parts added (BLANK), obviously, it should not be counted at all.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;I would be eternally grateful to the person who will help me with it&amp;nbsp; + a little reward from me, personally.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Oct 2022 15:04:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843747#M90916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-15T15:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843797#M90921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;There is no information given about the relationships between the two tables therefore, I assume that Table1 filters Table2 (One to Many) relationship.&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
SUMX (
    Table1,
    VAR DateCreated = Table1[Dasboard Created]
    VAR LastAdded =
        CALCULATE ( MAX ( Table2[Part # was added on] ) )
    VAR PartsAdded =
        COUNTROWS ( CALCULATETABLE ( Table2 ) )
    RETURN
        IF ( PartsAdded &amp;gt; 0 &amp;amp;&amp;amp; LastAdded &amp;lt;= DateCreated, 1 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 15 Oct 2022 16:51:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843797#M90921</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-15T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843869#M90924</link>
      <description>&lt;P&gt;Yes, table 1 filters table 2. The measure works but does not return correct values just yet, I suspect it's because there are incorrect values in x axis date values in the chart&lt;BR /&gt;&lt;BR /&gt;What date data should I put into the bar chart's X axis? Should it be the date when the dashboard was created?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 18:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843869#M90924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-15T18:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843963#M90926</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes. The date when dashboard was created should work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 20:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843963#M90926</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-15T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843969#M90929</link>
      <description>&lt;P&gt;Unfortunately, it didn't work:( Maybe it's because of SUMX?&lt;BR /&gt;&lt;BR /&gt;Because I need to count every &lt;STRONG&gt;distinct&lt;/STRONG&gt; project that has part # added before or during the month its dashboard was created&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 20:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2843969#M90929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-15T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844239#M90950</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per the sample data you have provided each row in Table1 represents one project. If this is not correct please let me know. The SUMX is just to have a correct result at the total level.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 06:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844239#M90950</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844452#M90971</link>
      <description>&lt;P&gt;So, based on your expression it returns the count of 12 for the month of August:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;After manually going through the tables, it is known that there should be 18 projects counted for the month of August, here is the list of screenshots for every project (for understanding):&lt;BR /&gt;1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;As you can see, project 1009 had its part added before or during the month the dashboard was created, so it should be counted for the month of August and the upcoming months (like cumulative)&lt;/P&gt;&lt;P class="lia-align-left"&gt;2)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;4)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;6)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;7)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;9)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;10)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;11)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;12)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;13)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;14)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;15)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;16)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;17)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;18)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, here they are - 18 projects that meet conditions and should be counted for August and so on (as a cumulative count).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;We have a project in which the dashboard was added in August, but parts # were added in September:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, in August we have 18 projects, but in September we should have 19, this new project's parts were added in the next month - that's why we start counting it from September.&amp;nbsp;&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>Sun, 16 Oct 2022 09:46:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844452#M90971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-16T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844523#M90978</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question, if you change the data type format to DD/MM/YYYY what DD to you get? Is there a difference between Dashboard Added Date and the Part Added Date?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 12:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844523#M90978</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844537#M90979</link>
      <description>&lt;P&gt;Yes, there are differences. Both dashboards added date and part # added dates are datetimes, but since my granularity is month, I formatted them:&lt;BR /&gt;This is how they look without month formatting:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 12:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844537#M90979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-16T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844548#M90980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
VAR DateCreated =
    EOMONTH ( SELECTEDVALUE ( Table1[Dasboard Created] ), 0 )
VAR ProjectsOnAndBefore =
    CALCULATETABLE (
        VALUES ( Table1[Projet Name] ),
        ALL ( Table1[Dasboard Created] ),
        Table1[Dasboard Created] &amp;lt;= DateCreated
    )
RETURN
    SUMX (
        ProjectsOnAndBefore,
        VAR LastAdded =
            CALCULATE ( MAX ( Table2[Part # was added on] ) )
        VAR PartsAdded =
            COUNTROWS ( CALCULATETABLE ( Table2 ) )
        RETURN
            IF ( PartsAdded &amp;gt; 0 &amp;amp;&amp;amp; LastAdded &amp;lt;= DateCreated, 1 )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 16 Oct 2022 12:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844548#M90980</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844594#M90983</link>
      <description>&lt;P&gt;It has counted 9 instead of 18 for August and didn't do cumulative count for subsequent months, i.e., the same project count wasn't returned for September or October. And it counted the project which has no part # added for some reason.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844594#M90983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-17T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844603#M90984</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please provide a screenshot of your data modle? Do you have a date table?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 13:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844603#M90984</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844612#M90985</link>
      <description>&lt;P&gt;Unfortunately, I can't share data model screenshots.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844612#M90985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-17T09:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844625#M90988</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the relationship is based on the project name column?&amp;nbsp;&lt;BR /&gt;please try the following otherwise, let me know if we can connect via teams or zoom&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
VAR DateCreated =
    EOMONTH ( SELECTEDVALUE ( Table1[Dasboard Created] ), 0 )
VAR ProjectsOnAndBefore =
    CALCULATETABLE (
        VALUES ( Table1[Projet Name] ),
        ALL ( Table1[Dasboard Created] ),
        Table1[Dasboard Created] &amp;lt;= DateCreated
    )
RETURN
    SUMX (
        ProjectsOnAndBefore,
        VAR LastAdded =
            CALCULATE (
                MAX ( Table2[Part # was added on] ),
                ALL ( Table1[Dasboard Created] )
            )
        VAR PartsAdded =
            COUNTROWS ( CALCULATETABLE ( Table2, ALL ( Table1[Dasboard Created] ) ) )
        RETURN
            IF ( PartsAdded &amp;gt; 0 &amp;amp;&amp;amp; LastAdded &amp;lt;= DateCreated, 1 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 13:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844625#M90988</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844648#M90995</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 21:46:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844648#M90995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T21:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844651#M90997</link>
      <description>&lt;P&gt;Ok please share the meeting link&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 13:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2844651#M90997</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-16T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count with date filters - got stuck and desperate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2846139#M91080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Final Solution is as follows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
VAR CurrentDate =
    MAX ( 'Date'[Date] )
VAR AllProjects =
    FILTER ( Table1, Table1[Date created] &amp;lt;= current_date )
RETURN
    VAR pj_type1 =
        SUMX (
            AllProjects,
            VAR Parts1 =
                FILTER (
                    CALCULATETABLE ( Table2, Table3[Date created] &amp;lt;= current_date ),
                    Table2[Added On] &amp;lt;&amp;gt; BLANK ()
                )
            VAR PartsAdded1 =
                COUNTROWS ( Parts1 )
            VAR LastAdded1 =
                MINX ( Parts1, Table2[Added On] )
            RETURN
                IF ( PartsAdded1 &amp;gt; 0 &amp;amp;&amp;amp; LastAdded1 &amp;lt;= CurrentDate, 1 )
        )
    VAR pj_type2 =
        SUMX (
            AllProjects,
            VAR Parts2 =
                FILTER (
                    CALCULATETABLE (
                        Table2,
                        USERELATIONSHIP ( Table3[Code], Table4[Code] ),
                        Table3[Date created] &amp;lt;= current_date
                    ),
                    Table2[Added On] &amp;lt;&amp;gt; BLANK ()
                )
            VAR PartsAdded =
                COUNTROWS ( Parts2 )
            VAR LastAdded =
                MINX ( Parts2, Table2[Added On] )
            RETURN
                IF ( PartsAdded2 &amp;gt; 0 &amp;amp;&amp;amp; LastAdded2 &amp;lt;= CurrentDate, 1 )
        )
    RETURN
        pj_type1 + pj_type2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-with-date-filters-got-stuck-and-desperate/m-p/2846139#M91080</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-17T13:14:35Z</dc:date>
    </item>
  </channel>
</rss>

