Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Amardeep100115
Post Prodigy
Post Prodigy

Assistance Needed: Identifying New and Lost Customers

Dear Power BI Community,


I hope this message finds you well.

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.

In my dataset, I have two columns: "File Date" and "Data Date", but the focus should be on the "Data Date" column for this analysis.

Below are the measures I have used in my file:

Sample Data 

 

This is my old post on community for your reference 

https://community.fabric.microsoft.com/t5/Desktop/Identified-new-entry-and-missing-product-from-last... 

Result should be like below in visual 

 

Amardeep100115_0-1737565009919.png


Reference table for results


Amardeep100115_0-1737562110477.png

 

 

Resent in chosen month =
Countrows ( ChangeInCust ) 

 

 

 

Present in previous month =
CALCULATE (
    [Resent in chosen month],
    PREVIOUSMONTH ( ChangeInCust [Data Date] )

 

 

 

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] > 0
            && [ABCD] = 0
    )
)

 

 

 

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] > 0
            && [IJKL] = 0
    )
)

 

 

 

 

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] > 0
            && [ABCD] = 0
    )
)

 

 

I would be extremely grateful if you could help me refine or improve this approach. Your expertise and insights would mean a lot.

Thank you in advance for your valuable time and support!


Best regards,
Amardeep Bhingardeve

Amardeep Bhingardeve
2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Amardeep100115 See if these help: 
New and Returning Customers - Microsoft Fabric Community
Better Sales from New Customers - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler 
While the reference links provided are definitely helpful, they don’t fully address my specific request.

Amardeep Bhingardeve

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.