This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 a [PlayerId] and [DepositDate].
Some metrics I already have setup here are the
[Total Depositors] = DISTINCTCOUNT(Deposits[PlayerId])
[First Time Depositors] = CALCULATE(COUNTROWS(Deposits), Deposits[IsFirstDeposit]=1)
[Retained] = [Depositors]-[FTDs]
The requirement for [Consecutive Depositor] is the count of players that have deposited in consecutive months (not just any previous month).
So I'm guessing it's somewhere along the lines of := SUMX( Distinct count of PlayerId where depositor in current month and previous month)
It's evaluating whether the particular player has deposited in the previous month that is beyond my DAX capabilities. The highlighted column would be the desired output.
Thanks
Dave
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.
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 6 | |
| 6 | |
| 6 |