In this blog, I build a Cohort Analysis Dashboard in Power BI and explain how the logic works from the ground up. We start by identifying when each customer made their first purchase, then calculate how many months have passed since that first purchase. From there, we build the cohort matrix to see how many customers were acquired in each month and how many of them returned in the following months. I also show how to calculate the customer retention percentage using DAX. This kind of cohort analysis is especially useful for tracking customer retention, churn, repeat purchases, and customer behaviour in SaaS, e-commerce, marketing, and other subscription or repeat-purchase businesses.