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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mcash
Helper I
Helper I

How do I return a list of products that have not occured within the last 6 months?

I have a giant table that includes a SalesDate column, a ProductID column, a ProductName column, and other colums containing customer and sales data. I want to list only the ProductNames that have not been sold in the last 180 days. I tried the following DAX to create a table, but I am finding transactions on that list that have occured in the last 180 days. I only want to see products that haven't sold in the past 180 days for product management.

 

 

= FILTER(SUMMARIZE(Sales, Sales[ProductID], "LastSaleDate", MAX(Sales[SaleDate])),
         [LastSaleDate] < TODAY() - 180 || ISBLANK([LastSaleDate]))

 

 

How can I accomplish this?

1 REPLY 1
amitchandak
Super User
Super User

@mcash , You have to consider the lost customer approach

 

Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-6,MONTH))

 

Not Sold in last 6= countx(Product[Product]), if(Isblank([Rolling 6]), [Product], blank())

 

 

LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retentio...

 

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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