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
Anonymous
Not applicable

How to count active customer numbers who has sales large than 4 units every month

Hi Folks,

Anyone know how to calculate active customer numbers. The active customer must to have at least 4 units sales every month.

dannyschool_0-1595783109013.png

 

Thank you.

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can check if this works

 

Quantity 1M =
CALCULATE (
    SUM ( 'Table'[Purchase Quantity] ),
    DATESINPERIOD (
        'Calendar'[Date],
        MAX ( 'Calendar'[Date] ),
        -1,
        MONTH
    )
)

 

Active Customers =
VAR _activeCusts =
    FILTER (
        Customers,
        [Quantity 1M] > 4
    )
RETURN
    COUNTROWS ( _activeCusts )

 

 

Regards,
Harsh Nathani

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

 

Anonymous
Not applicable

Hi @Anonymous 

 

It could something like this:

MoreThan4 = 
var _NofMonths = DISTINCTCOUNT(Data[Month])
var _4Units = calculate( DISTINCTCOUNT(Data[Month]), Data[Qty] >=4)

return If (_4Units>=_NofMonths, "Active", "Not Active")
 
Jan if this is a solution for you, don't forget to mark it as such. thanks

@Anonymous , refer if this can ehlp

https://community.powerbi.com/t5/Desktop/Churn-Rate-lost-Customer/m-p/1173754#M529196
https://blog.enterprisedna.co/new-vs-existing-customers-advanced-analytics-w-dax/
https://www.sqlbi.com/articles/computing-new-customers-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.