Forum Discussion
atul9063
Helper III
7 years agoCalculate Retain Customer
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...
- 7 years ago
Zubair_Muhammad
Community Champion
7 years ago
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 ) )
)
Zubair_Muhammad
Community Champion
7 years ago- atul90637 years ago
Helper III
Zubair_MuhammadThanks for quick response