Forum Discussion
MrAtkinson
2 years agoFrequent Visitor
Calculate retention by month
Hi all, I am looking to calculate the retention rate of our members. I was wondering if its possible to do it in one and show the % in a Card? Each member has a unique ID and a membership status...
Anonymous
2 years agoNot applicable
Hi MrAtkinson ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Measure =
var _countall=
CALCULATE(DISTINCTCOUNT('Table'[UI_ID]),
FILTER(ALL('Table'),YEAR('Table'[Date])=YEAR(TODAY())&&MONTH('Table'[Date])=MONTH(TODAY())))
var _countactive=
CALCULATE(DISTINCTCOUNT('Table'[UI_ID]),
FILTER(ALL('Table'),YEAR('Table'[Date])=YEAR(TODAY())&&MONTH('Table'[Date])=MONTH(TODAY())&&'Table'[Status]="Active"))
return
DIVIDE(
_countactive,_countall)
2. Result:
If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
MrAtkinson
2 years agoFrequent Visitor
Hi,
Thank you for getting back so quickly! This seems like it will do what i need it to do. However i do not have a date option in the data. Is there a way to do this with Calander Date and put it into a bar chart to show month on month?
Thanks
Jake