<?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 Assistance Needed: Identifying New and Lost Customers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376164#M173746</link>
    <description>&lt;P&gt;Dear Power BI Community,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;I am seeking your guidance on a scenario where I need to identify the number of new customers acquired in a specific or selected month and the number of customers lost during the same period/selected month.&lt;/P&gt;&lt;P&gt;In my dataset, I have two columns: &lt;STRONG&gt;"File Date"&lt;/STRONG&gt; and &lt;STRONG&gt;"Data Date"&lt;/STRONG&gt;, but the focus should be on the &lt;STRONG&gt;"Data Date"&lt;/STRONG&gt; column for this analysis.&lt;/P&gt;&lt;P&gt;Below are the measures I have used in my file:&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Sample Data" href="https://1drv.ms/x/c/0b49db32f818eb2d/EW0JKbGTjx1NltmXiVozwe8B12HmzV5nCB6QD3DJnYtq6w?e=MPqrMS" target="_self"&gt;Sample Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my old post on community for your reference&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Identified-new-entry-and-missing-product-from-last-month-Part-2/m-p/936895#M448841" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/Identified-new-entry-and-missing-product-from-last-month-Part-2/m-p/936895#M448841&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Result should be like below in visual&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Reference table for results&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;&lt;LI-CODE lang="markup"&gt;Resent in chosen month =
Countrows ( ChangeInCust ) &lt;/LI-CODE&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;Present in previous month =
CALCULATE (
    [Resent in chosen month],
    PREVIOUSMONTH ( ChangeInCust [Data Date] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cloesed this month =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            CALCULATETABLE (
                VALUES ( ChangeInCust [CustID] ),
                DATESBETWEEN (
                    'Calendar'[Date],
                    EDATE (
                        MIN ( 'Calendar'[Date] ), -1
                    ),
                    MAX ( 'Calendar'[Date] )
                )
            ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "EFGH", [Present in previous month]
        ),
        [EFGH] &amp;gt; 0
            &amp;amp;&amp;amp; [ABCD] = 0
    )
)&lt;/LI-CODE&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;New this month =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            VALUES ( ChangeInCust [CustID] ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "IJKL",
                CALCULATE (
                    [Resent in chosen month],
                    DATESBETWEEN (
                        'Calendar'[Date],
                        MINX (
                            ALL ( 'Calendar' ),
                            'Calendar'[Date]
                        ),
                        EOMONTH (
                            MIN ( 'Calendar'[Date] ),
                            -1
                        )
                    )
                )
        ),
        [ABCD] &amp;gt; 0
            &amp;amp;&amp;amp; [IJKL] = 0
    )
)&lt;/LI-CODE&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Closed this month 1 =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            CALCULATETABLE (
                VALUES ChangeInCust [CustID]),
                DATESBETWEEN (
                    'Calendar'[Date],
                    DATE(
                        YEAR(MIN('Calendar'[Date])),
                        MONTH(MIN('Calendar'[Date])) ,
                        DAY(MIN('Calendar'[Date]))
                    ),
                    MAX ( 'Calendar'[Date] )
                )
            ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "EFGH", [Present in previous month]
        ),
        [EFGH] &amp;gt; 0
            &amp;amp;&amp;amp; [ABCD] = 0
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be extremely grateful if you could help me refine or improve this approach. Your expertise and insights would mean a lot.&lt;/P&gt;&lt;P&gt;Thank you in advance for your valuable time and support!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Amardeep Bhingardeve&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 16:56:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-22T16:56:54Z</dc:date>
    <item>
      <title>Assistance Needed: Identifying New and Lost Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376164#M173746</link>
      <description>&lt;P&gt;Dear Power BI Community,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;I am seeking your guidance on a scenario where I need to identify the number of new customers acquired in a specific or selected month and the number of customers lost during the same period/selected month.&lt;/P&gt;&lt;P&gt;In my dataset, I have two columns: &lt;STRONG&gt;"File Date"&lt;/STRONG&gt; and &lt;STRONG&gt;"Data Date"&lt;/STRONG&gt;, but the focus should be on the &lt;STRONG&gt;"Data Date"&lt;/STRONG&gt; column for this analysis.&lt;/P&gt;&lt;P&gt;Below are the measures I have used in my file:&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Sample Data" href="https://1drv.ms/x/c/0b49db32f818eb2d/EW0JKbGTjx1NltmXiVozwe8B12HmzV5nCB6QD3DJnYtq6w?e=MPqrMS" target="_self"&gt;Sample Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my old post on community for your reference&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Identified-new-entry-and-missing-product-from-last-month-Part-2/m-p/936895#M448841" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/Identified-new-entry-and-missing-product-from-last-month-Part-2/m-p/936895#M448841&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Result should be like below in visual&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Reference table for results&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;&lt;LI-CODE lang="markup"&gt;Resent in chosen month =
Countrows ( ChangeInCust ) &lt;/LI-CODE&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;Present in previous month =
CALCULATE (
    [Resent in chosen month],
    PREVIOUSMONTH ( ChangeInCust [Data Date] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cloesed this month =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            CALCULATETABLE (
                VALUES ( ChangeInCust [CustID] ),
                DATESBETWEEN (
                    'Calendar'[Date],
                    EDATE (
                        MIN ( 'Calendar'[Date] ), -1
                    ),
                    MAX ( 'Calendar'[Date] )
                )
            ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "EFGH", [Present in previous month]
        ),
        [EFGH] &amp;gt; 0
            &amp;amp;&amp;amp; [ABCD] = 0
    )
)&lt;/LI-CODE&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;New this month =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            VALUES ( ChangeInCust [CustID] ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "IJKL",
                CALCULATE (
                    [Resent in chosen month],
                    DATESBETWEEN (
                        'Calendar'[Date],
                        MINX (
                            ALL ( 'Calendar' ),
                            'Calendar'[Date]
                        ),
                        EOMONTH (
                            MIN ( 'Calendar'[Date] ),
                            -1
                        )
                    )
                )
        ),
        [ABCD] &amp;gt; 0
            &amp;amp;&amp;amp; [IJKL] = 0
    )
)&lt;/LI-CODE&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Closed this month 1 =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            CALCULATETABLE (
                VALUES ChangeInCust [CustID]),
                DATESBETWEEN (
                    'Calendar'[Date],
                    DATE(
                        YEAR(MIN('Calendar'[Date])),
                        MONTH(MIN('Calendar'[Date])) ,
                        DAY(MIN('Calendar'[Date]))
                    ),
                    MAX ( 'Calendar'[Date] )
                )
            ),
            ChangeInCust [CustID],
            "ABCD", [Resent in chosen month],
            "EFGH", [Present in previous month]
        ),
        [EFGH] &amp;gt; 0
            &amp;amp;&amp;amp; [ABCD] = 0
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be extremely grateful if you could help me refine or improve this approach. Your expertise and insights would mean a lot.&lt;/P&gt;&lt;P&gt;Thank you in advance for your valuable time and support!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Amardeep Bhingardeve&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 16:56:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376164#M173746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-22T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: Identifying New and Lost Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376198#M173749</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;See if these help:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/168297#M13" target="_blank"&gt;New and Returning Customers - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Sales-from-New-Customers/m-p/2843073#M904" target="_blank"&gt;Better Sales from New Customers - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 17:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376198#M173749</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-01-22T17:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: Identifying New and Lost Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376260#M173752</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;While the reference links provided are definitely helpful, they don’t fully address my specific request.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 17:33:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assistance-Needed-Identifying-New-and-Lost-Customers/m-p/4376260#M173752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-22T17:33:05Z</dc:date>
    </item>
  </channel>
</rss>

