How to do a cohort analysis using a heatmap

Check also this discussion