Forum Discussion
Improve Formula Efficiency on Measure with Calculated Table
The formula is designed to take the customer revenue per possible user (not just active) in a given cohort, and aggregate them. So for week 1 in the chart, it would be total revenue week 0 for cohort/total members of cohort + total revenue week 1 for cohort/total members of cohort who joined at least 1 week ago.
I'm wondering if there's a more efficient way to build the table variables I'm using that won't overuse the available resources.
Thanks!
5 Replies
- Whitewater100
Solution Sage
Hi:
Are you asking about LTV or Monthly Revenue?
to best answer your question ,some more info would be helpful (example file) pictures of data model and table columns.
Normally LifeTime Value for Total Revenue would be:
= CALCULATE([Total Revenue], FILTER(ALL(Dates[Date]), Dates[Date] <= MAX(Dates[Date]))
- John12345New Member
Thanks Whitewater,
I'm trying to calculate LTV by customer, but the difficulty is we want to use monthly cohorts, but the column headers would be weeks. In most circumstances, I could just do total revenue/customers, and that would solve it, however in this case, customers in the same cohort might have joined weeks apart, and I want to account for that, by only putting customers in the denominator who actually could have ordered in a given week, rather than all customers in the cohort.
Here's an excel that hopefully does a better job of explaining.
https://docs.google.com/spreadsheets/d/1yRtV9eZP8Txe3WFkFpD5ZWUbxGjmtr6X6lSwnFnL69k/edit?usp=sharing
- Whitewater100
Solution Sage
Hi John:
Thanks for the update. I'm leaving for a trip in a few minutes. If not solved by Sunday, can you remind me to check it out? Thank you
- John12345New Member
Definitely. Enjoy your trip!
- Whitewater100
Solution Sage
Hi John:
Thank you for providing some more info. I'm still not entirely understanding.
How do you assign customers to their cohort group? Is this group dynamic?
If you had some example tables with data and expected results(and pitfalls) it could help. I'm sorry for not totally tracking on how you want this analysis.
Have a goood rest of the day!