Forum Discussion
jchang27
6 years agoRegular Visitor
How to Calculate Repeat Users for the month
Hi Power BI Community,
I'm trying to figure out how to calculate repeat users for the month. Users can visit multiple times in a day but that doesn't count as a repeat user. The user needs to visit at least 2 times on separate days in the month to be counted as a repeat user.
Sample Dataset:
| User | Date |
| James | 11/1/2019 |
| Derek | 11/1/2019 |
| Chris | 11/1/2019 |
| James | 11/1/2019 |
| James | 11/1/2019 |
| Derek | 11/2/2019 |
| Chris | 11/1/2019 |
| Chris | 11/5/2019 |
| Chris | 11/5/2019 |
| Bob | 10/10/2019 |
| Bob | 10/25/2019 |
Expect Outcome:
| October Repeat Users |
| Bob |
| November Repeat Users |
| Chris |
| Derek |
Does anyone know how I can approach this?
Thanks!
-James
Hi jchang27
Create measures
Measure 5 = CALCULATE(DISTINCTCOUNT(Table3[Date]),ALLEXCEPT(Table3,Table3[User])) Measure 6 = CALCULATE(DISTINCTCOUNT(Table3[User]),FILTER(Table3,Table3[Measure 5]>1))Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- v-juanli-msft
Community Support
Hi jchang27
Create measures
Measure 5 = CALCULATE(DISTINCTCOUNT(Table3[Date]),ALLEXCEPT(Table3,Table3[User])) Measure 6 = CALCULATE(DISTINCTCOUNT(Table3[User]),FILTER(Table3,Table3[Measure 5]>1))Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.