Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Cohort Analysis Filter

Hi experts,

 

I'm currently working on a cohort analysis. We have many billing types at the same time such as online, offline and both, but when I try to filter users who had online bill only, the cohort still shows people who had offline bills in previous months.

 

Here is the formula i'm using for customer retention.

Customer Retention = 
 VAR CurrentFirstOrderDate = SELECTEDVALUE('List Billing Store'[First Order Date (EOM)])
 VAR MonthsAfter = SELECTEDVALUE('After Months'[Value])
RETURN
  CALCULATE(
   DISTINCTCOUNT('List Billing Store'[New Outlet]),
    FILTER(
    'List Billing Store',
      EOMONTH('List Billing Store'[Date],0) = EOMONTH(CurrentFirstOrderDate,MonthsAfter)
      )
    )

Thanks a lot in advance for your support!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Can anyone help me with this please? ğŸ˜­

  • Hi Anonymous ,

     

    Sorry for the information you provided to me is not making the problem clear to me. Can you share more details to help us clearify your scenario?

    Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

     

    Refer to:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

     

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.