cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
atul9063 Member
Member

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

Accepted Solutions
Super User
Super User

Re: Calculate Retain Customer

@atul9063

 

See file attached as well

 

retention.png

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Calculate Retain Customer

@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 ) )
    )
Super User
Super User

Re: Calculate Retain Customer

@atul9063

 

See file attached as well

 

retention.png

View solution in original post

atul9063 Member
Member

Re: Calculate Retain Customer

@Zubair_MuhammadThanks for quick response 

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 356 members 3,413 guests
Please welcome our newest community members: