Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
I want help in calculating retained users :
Output
| month | Count of retain Users |
| Jan | 4 |
| Feb | 2 |
| Mar | 3 |
Dataset
| Date | Useritemid |
| 1/1/2018 | 1 |
| 1/2/2018 | 2 |
| 1/3/2018 | 3 |
| 1/4/2018 | 6 |
| 2/10/2018 | 1 |
| 2/11/2018 | 3 |
| 2/12/2018 | 10 |
| 2/13/2018 | 3 |
| 2/14/2018 | 1 |
| 2/15/2018 | 11 |
| 3/15/2018 | 1 |
| 3/16/2018 | 2 |
| 3/17/2018 | 3 |
| 3/18/2018 | 10 |
| 3/19/2018 | 14 |
Solved! Go to Solution.
See file attached as well
try this
Create a calendar table and then this MEASURE
Measure =
VAR PreviousMonthUsers =
CALCULATETABLE (
DISTINCT ( Table1[Useritemid ] ),
PREVIOUSMONTH ( Table1[Date] )
)
VAR CurrentMonthUsers =
DISTINCT ( Table1[Useritemid ] )
RETURN
IF (
ISEMPTY ( PreviousMonthUsers ),
COUNTROWS ( CurrentMonthUsers ),
COUNTROWS ( INTERSECT ( PreviousMonthUsers, CurrentMonthUsers ) )
)
See file attached as well
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 106 | |
| 65 | |
| 36 | |
| 36 |