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
EV
Advocate II
Advocate II

Lost customers no purchase more than 6 months

I tried all possible solutions and tried techniques suggeste, but still cant ge through this.

 

All im tyring to do is show the lost customer sales from previous year, who didnt purchase for 6 months from selected month. Group by customer and Item.

 

I created 3 measures, All works except the total. It seems to consider total onlly for current year or not at all.

Last period sales = 

 
CALCULATE( SUM(Sales[REVENUE_USD_FxAdj]),DATESINPERIOD('Calendar'[Date],LASTDATE('Calendar'[Date]),-7,MONTH)
)

prior year sales =

CALCULATE (
    -Sales[SALES REVENUE_PY_FxAdj],
    DATEADD ( 'Calendar'[Date], -1, YEAR )
)

lost customer sales = If last period sales is less than or equal to 0 or blank, return the prior year sales for that month in negative.

IF(OR(ISBLANK([Last Period Sales]),[Last Period Sales]<=0), [Prior Year Sales],BLANK()) 

I am seeing right values for the lost customer sales but total is blank.

I tried all possible SUMX, SUMMARIZE, still it doesnt work.
lc.PNG

 

At the end I want to be able to see the total for each month in the below table

totla.PNG

Please can someone help me.

 @OwenAuger  @MFelix  @Zubair_Muhammad Please can you help

10 REPLIES 10

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.