Forum Discussion
How do I calculate Lost Customer Sales?
- 9 years ago
This is all you need:
Lost customer sales = CALCULATE ( [SALES],PREVIOUSMONTH('DATE[DATE]),FILTER(CUSTOMER,[SALES]=0)
Hi v-qiuyu-msft,
Thanks for responding!
I totally get your logic and I think it will work for my problem, I'm just having a syntax issue. Can you take a look:
Thanks for your help!
- cnpdx9 years ago
Helper II
Hi 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)...
- Vvelarde9 years ago
Community Champion
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 "")
- cnpdx9 years ago
Helper II
i'm just not clear where that IF(lookvalue........) <> Blank() fits in to the whole formula. can you elaborate?