By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Deal | Closing_date | Revenue_won |
---|---|---|
Deal #1 | 01/jan/2022 | 500 |
Deal #2 | 01/jan/2022 | 500 |
Deal #3 | 02/jan/2022 | 1500 |
Deal #4 | 02/jan/2022 | 500 |
Churn | Closing_date | Revenue_lost |
---|---|---|
Churn #1 | 01/jan/2022 | -500 |
Churn #2 | 02/jan/2022 | -100 |
Churn #3 | 02/jan/2022 | -100 |
Upsell | Closing_date | Revenue_won |
---|---|---|
Upsell #1 | 01/jan/2022 | 2000 |
Upsell #2 | 01/jan/2022 | -1000 |
Upsell #3 | 02/jan/2022 | 2000 |
Closing_date | Revenue gained from new deals | Revenue lost from churn | Revenue gained from upsell |
---|---|---|---|
01/jan/2022 | 1000 | -500 | 1000 |
02/jan/2022 | 2000 | -200 | 2000 |