Forum Discussion
Anonymous
6 years agoNot applicable
Customers with 0 usage, Last 'x' months
Hi all, I am looking to create a formula that counts (or flags) the number of customers that have had 0 usage within the last x months (where x can be changed if needed - for this example let x =...
- Anonymous6 years ago
Thank you both. I think I have got the answer.
Using Greg_Deckler's solution as the starting point and an idea from amitchandak., I have the following, which gives me the expected result.
GregSolution =VAR __Table =SUMMARIZE(FILTER('Phone Usage','Phone Usage'[Date]<=DATE(2020,5,1) && [Date]>=EOMONTH(DATE(2020,5,1),-2)+1),[Customer],"__Usage",SUM([Usage]), "months", COUNTROWS('Phone Usage'))RETURNCOUNTROWS(FILTER(__Table,[__Usage]=0 && [months] = 3))Really appreciate the help from you both
Anonymous
6 years agoNot applicable
Thank you both for the quick replies, hugely appreciated.
Funnily enough, the issue with both solutions, is that they both return a value of 2, as they are including Mary, but she didn't have a record in April and this should have 'reset' the count for her. This is the same issue that I was hitting as I don't want to count the months that are blank, I want to have 'x' consecutive months where the usage is 0.
Hope that makes sense.
Greg_Deckler
Community Champion
6 years agoAnonymous No, not entirely, please post expected output and why.