Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alya1
Helper V
Helper V

Help with customer turnover, combining 2 tables with missing dates

Hi all,

I've been trying different ways to go about this with no luck, thank you for your time.

I have 2 tables like below:

table 1 customers list 
customer idsubscription tierdate
111a4/3/2021
222a4/3/2021
333a4/3/2021
111a4/21/2021
222a4/21/2021
333a4/21/2021
111c4/22/2021
222a4/22/2021
333a4/22/2021
444b4/22/2021
222a5/2/2021
333a5/2/2021
444b5/2/2021
555a5/2/2021
111b10/1/2023
222a10/1/2023
333a10/1/2023
444b10/1/2023
555a10/1/2023

 and 

table 2 customers actions   
customer id (CA)action (CA)subscription tier (CA)date (CA)reason (CA)
111activateda1/1/2021sale
222activateda4/1/2021sale
333activateda4/1/2021sale
444activatedb4/22/2021friend
111deactivatedc4/28/2021price
555activateda5/1/2021friend
111reactivatedb9/30/2023sale

both these tables start in FY 2021 till now with a lot more data.
I am having trouble creating graphs that make sense when I try to connect these 2 tables based on date. 
It's fine if I'm just showing data from 1 table but when I try to show turnover (# deactivated customer id (CA) / # customer id ) based on specific time period the number look very wrong, probably because of all the missing dates...

 

Does anyone have idea on what is the correct way to go about this please?

 

1 REPLY 1
lbendlin
Super User
Super User

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors