Forum Discussion
djbuncle
6 years agoHelper I
Calculating Retained In Consecutive Months
Hi. I'm trying to calculate the count of players who have deposited in consecutive months (when slicing on any given month). I have a fact table which can have multiple deposits per day containing ...
amitchandak
6 years agoSuper User
Please find the sample below
Continous Months = CALCULATE(DISTINCTCOUNT('Date'[Format Month]),DATESINPERIOD('Date'[Date Filer],STARTOFMONTH(dateadd('Date'[Date Filer],-2,MONTH)),2,MONTH))Based on no of month change -2 (-1*month value)
This number should be equal month value for continuous data.
I have used a formatted month to count of month year. That can be replaced with other options.
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
- djbuncle6 years agoHelper I
Thanks amitchandak but this doesn't really address counting the specific players who have deposited in consecutive months. I really need to be using the count of [PlayerId]s who have deposits in consecutive months.