Forum Discussion
TheProv
3 years agoFrequent Visitor
Cohort Analysis average
Hi, I am analyzing a subscription service and I am trying to determine the average for the cohort analysis I have implemented. I have a subscriptions table that looks as follows: I determined...
Anonymous
3 years agoNot applicable
Hi TheProv ,
To calculate the average for each month after the join month, you can create a new measure that calculates the average of the "Customers in cohort %" measure for each month. Here's a DAX measure that should help you achieve this:
Average Customers in Cohort % =
VAR MaxMonthAfter = MAX('Cohort Analisys'[Value])
VAR Result =
AVERAGEX(
FILTER(
ALL('Cohort Analisys'[Value]),
'Cohort Analisys'[Value] <= MaxMonthAfter
),
CALCULATE(
[Customers in cohort %],
ALLEXCEPT('Users'' Revenues & Active Months', 'Users'' Revenues & Active Months'[Join month])
)
)
RETURN
Result
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.