Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi - I have two tables that have been appended: Churn with volumes in week and month fields and Base with data only in the month field (week field is all blank). Reason is I need 2 years of data and the base is too big to bring in at a weekly level.
I need to calculate a churn rate: weekly churn / that month's base (or closest month as some weeks will be across two months)
This is what the data currently looks like
Solved! Go to Solution.
@SecretChimpanze Hi! Create a separate Base Table and call it BaseReference.
Then create a relationship between your combined table and BaseReference through trde_mth.
Create a Churn Rate Measure like:
Churn Rate (%) =
DIVIDE(
SUM(Combined[Churn Vol]),
RELATED(BaseReference[Opening Base])
)
BBF
Keep the two tables separated (I call then Churn Monthly Data and Churn Weekly Data just as an example)
Create a calendar calculate table
Cal = CALENDARAUTO()
Connect the Calendar Date column to the trade_month column of both tables
Create two measures
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Keep the two tables separated (I call then Churn Monthly Data and Churn Weekly Data just as an example)
Create a calendar calculate table
Cal = CALENDARAUTO()
Connect the Calendar Date column to the trade_month column of both tables
Create two measures
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Thank you so much, this worked!
@SecretChimpanze Hi! Create a separate Base Table and call it BaseReference.
Then create a relationship between your combined table and BaseReference through trde_mth.
Create a Churn Rate Measure like:
Churn Rate (%) =
DIVIDE(
SUM(Combined[Churn Vol]),
RELATED(BaseReference[Opening Base])
)
BBF
Great solution, thank you!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |