Forum Discussion
cnpdx
Helper II
9 years agoHow do I calculate Lost Customer Sales?
I am trying to calcluate; "what were sales last month of customers who didn't purchase this month?" This article was amazing, and a real game changer to help calculate returning, new and lost...
- 9 years ago
This is all you need:
Lost customer sales = CALCULATE ( [SALES],PREVIOUSMONTH('DATE[DATE]),FILTER(CUSTOMER,[SALES]=0)
cnpdx
Helper II
9 years agoHi Vvelarde
Thanks, adding the ) worked, but now I get this new error. does anyone have a solution for that (pic)? The error says it doesn't like the customer key field (text)...
Vvelarde
Community Champion
9 years ago
Lookvalue have a result which is not a boolean expression.
In your case, you have to add IF(lookvalue........) <> Blank()
When the result is blank the formula give you a value and when is not another value ("Y" or "")