Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello
I need to calculate customers who had no sales for 30 to 180 days.Have any of you counted customers in a similar way?
I tried with measure but it doesn't count correctly.
Solved! Go to Solution.
@sgintowt , First create a meausre like
Rolling 30 to 180 = CALCULATE(Average(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ])-30,-150,DAY))
Then create a new measure
Risk customer =
countx(values(customer[customer]), if(isblank([Rolling 30 to 180]), [Customer], blank()) )
same as lost customer logic
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...
@sgintowt , First create a meausre like
Rolling 30 to 180 = CALCULATE(Average(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ])-30,-150,DAY))
Then create a new measure
Risk customer =
countx(values(customer[customer]), if(isblank([Rolling 30 to 180]), [Customer], blank()) )
same as lost customer logic
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...