Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
13 | |
13 | |
11 | |
6 |