cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
atul9063
Helper III
Helper III

Calculate Retain Customer

Hi,

 

I want help in calculating retained users :

 

Output 

monthCount of retain Users
Jan4
Feb2
Mar3

 

Dataset 

DateUseritemid 
1/1/20181
1/2/20182
1/3/20183
1/4/20186
2/10/20181
2/11/20183
2/12/201810
2/13/20183
2/14/20181
2/15/201811
3/15/20181
3/16/20182
3/17/20183
3/18/201810
3/19/201814
1 ACCEPTED SOLUTION

@atul9063

 

See file attached as well

 

retention.png

Regards
Zubair

Please try my custom visuals


View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@atul9063

 

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 ) )
    )
Regards
Zubair

Please try my custom visuals


@atul9063

 

See file attached as well

 

retention.png

Regards
Zubair

Please try my custom visuals


View solution in original post

@Zubair_MuhammadThanks for quick response 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors