<?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: Monthly Count Of Customers Status by their status at the end of each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884659#M93480</link>
    <description>&lt;P&gt;thanks for your reply!&lt;BR /&gt;for the below dummy data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;by your suggestion i get the below result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;it is wrong as in this case it is supposed to show:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please not that although there is no any status change in May'22 at all, i still wish to present May'22 statuses - according to the latest change available.&lt;BR /&gt;&lt;BR /&gt;Amit&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 06:27:49 GMT</pubDate>
    <dc:creator>akfir</dc:creator>
    <dc:date>2022-11-04T06:27:49Z</dc:date>
    <item>
      <title>Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2883270#M93399</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;BR /&gt;i wish to summarize the number of customers with their status (New Value) as for end of each month, as shown in my dummy tables.&lt;BR /&gt;Each Month in the result table actually presents the number of customer by the END OF THE MONTH for each status.&lt;BR /&gt;please note that the number of customers might increase from month to month as new customers join the database on a daily basis.&lt;BR /&gt;since a customer joins the database, it should be considered and being calculated until current month with his latest New Value (current status)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 15:09:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2883270#M93399</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-11-03T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884339#M93457</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191221" data-lia-user-login="akfir" class="lia-mention lia-mention-user"&gt;akfir&lt;/a&gt; , Try if this can help &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: &lt;A href="https://www.youtube.com/watch?v=W4EF1f_k6iY" target="_blank"&gt;https://www.youtube.com/watch?v=W4EF1f_k6iY&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 02:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884339#M93457</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-04T02:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884358#M93460</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191221" data-lia-user-login="akfir" class="lia-mention lia-mention-user"&gt;akfir&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the following dax formula to create a new calculated table to summary records based on last datae status:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;summary =
GROUPBY (
    FILTER (
        ADDCOLUMNS (
            'Table',
            "flag",
                IF (
                    [Change Date]
                        = MAXX (
                            FILTER (
                                'Table',
                                [Customer ID] = EARLIER ( 'Table'[Customer ID] )
                                    &amp;amp;&amp;amp; YEAR ( [Change Date] ) = YEAR ( EARLIER ( 'Table'[Change Date] ) )
                                    &amp;amp;&amp;amp; MONTH ( [Change Date] ) = MONTH ( EARLIER ( 'Table'[Change Date] ) )
                            ),
                            [Change Date]
                        ),
                    1,
                    0
                ),
            "MonthYear", FORMAT ( [Change Date], "mmm-yy" ),
            "Actived", IF ( [New Value] = "Active", 1, 0 ),
            "Inactive", IF ( [New Value] = "Inactive", 1, 0 )
        ),
        [flag] = 1
    ),
    [MonthYear],
    "#Active", SUMX ( CURRENTGROUP (), [Actived] ),
    "#Inactive", SUMX ( CURRENTGROUP (), [Inactive] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 03:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884358#M93460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-04T03:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884659#M93480</link>
      <description>&lt;P&gt;thanks for your reply!&lt;BR /&gt;for the below dummy data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;by your suggestion i get the below result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;it is wrong as in this case it is supposed to show:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please not that although there is no any status change in May'22 at all, i still wish to present May'22 statuses - according to the latest change available.&lt;BR /&gt;&lt;BR /&gt;Amit&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 06:27:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884659#M93480</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-11-04T06:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884724#M93481</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;BR /&gt;i was following your solution on the video you shared.&amp;nbsp;&lt;BR /&gt;it is a little different from what i need, as i need to show the last status of a customer by the end of each month of the year. my main goal is aggregately counting the active and inactive customers for EACH month (even if there is no status change in a specific month, then i wish to count the latest status of the last month).&lt;BR /&gt;hope it is clear.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 06:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2884724#M93481</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-11-04T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2887561#M93654</link>
      <description>&lt;P&gt;Hi any help please?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 14:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2887561#M93654</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-11-06T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2887562#M93655</link>
      <description>&lt;P&gt;Hi any help please?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 14:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2887562#M93655</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-11-06T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2914511#M95364</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191221" data-lia-user-login="akfir" class="lia-mention lia-mention-user"&gt;akfir&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;So, you mean this status should also be also calculated unital to the end even if this status not changed? If that is the case, you can modify the formula to change calculate records from accurate month to rolling multiple month records:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;summary =
GROUPBY (
    FILTER (
        ADDCOLUMNS (
            'Table',
            "flag",
                IF (
                    [Change Date]
                        = MAXX (
                            FILTER (
                                'Table',
                                [Customer ID] = EARLIER ( 'Table'[Customer ID] )
                                    &amp;amp;&amp;amp; YEAR ( [Change Date] ) = YEAR ( EARLIER ( 'Table'[Change Date] ) )
                                    &amp;amp;&amp;amp; MONTH ( [Change Date] ) &amp;lt;= MONTH ( EARLIER ( 'Table'[Change Date] ) )
                            ),
                            [Change Date]
                        ),
                    1,
                    0
                ),
            "MonthYear", FORMAT ( [Change Date], "mmm-yy" ),
            "Actived", IF ( [New Value] = "Active", 1, 0 ),
            "Inactive", IF ( [New Value] = "Inactive", 1, 0 )
        ),
        [flag] = 1
    ),
    [MonthYear],
    "#Active", SUMX ( CURRENTGROUP (), [Actived] ),
    "#Inactive", SUMX ( CURRENTGROUP (), [Inactive] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 07:23:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/2914511#M95364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T07:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Count Of Customers Status by their status at the end of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/3365126#M126529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191221" data-lia-user-login="akfir" class="lia-mention lia-mention-user"&gt;akfir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the exact same requirement, did you find a solution? Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 08:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Count-Of-Customers-Status-by-their-status-at-the-end-of/m-p/3365126#M126529</guid>
      <dc:creator>aanyoti</dc:creator>
      <dc:date>2023-08-04T08:43:03Z</dc:date>
    </item>
  </channel>
</rss>

