Forum Discussion

An_a's avatar
An_a
New Member
3 years ago

Cohort Analysis

Hi all,

 

I'm still fairly new to using Power BI and am failing to do a cohort analysis. I have created a table with the corresponding cohorts.

Now I want to find out how many customers are distributed among the cohorts based on the number of total requests (requested_articles) per month (since 2022).

I hope someone can help me 🙂

2 Replies

  • Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
    https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
    Please show the expected outcome based on the sample data you provided.

    https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

  • An_a's avatar
    An_a
    New Member

    Sorry. So here are some sample data:

    update_createdcustomer_idrequested_articles
    3/31/2023 2:005549969
    3/30/2023 13:004672169
    3/27/2023 15:30439166
    3/27/2023 14:00566314123
    3/27/2023 14:00287967924
    3/27/2023 1:00522585898
    10/31/2022 2:0029469085
    10/31/2022 1:0033053971

     

    The Cohort Overview:

    CohortNameMinSumRequestsMaxSumRequests
    <5.00005000
    5.000-50.000500150000
    50.000-100.00050001100000
    100.000-200.000100001200000
    200.000-500.000200001500000
    500.000-1.000.0005000011000000

     

    Based on the sample data the outcome that I need would look like this:

    Month / YearCohortNameSum of Customers
    March / 2023<5.0003
    March / 20235.000-50.0001
    March / 202350.000-100.0002
    March / 2023100.000-200.0000
    March / 2023200.000-500.0000
    March / 2023500.000-1.000.0000