Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |