How to calculate last 3 months average growth rate as of snapshot date

Issue

This Content is from Stack Overflow. Question asked by Nupur Jain

I have a dataset as below where we want to follow snapshot based approach( that is as of 3 snapshot dates in the dataset, what is the performance)

Cust IDReporting DateSnapshot dateNumber of debitsNumber of credits
C1JUN’21SEP’2155
C1JULY’21SEP’2168
C1AUG’21SEP’2171
C1SEP’21SEP’21510

Here there is 12 month(June’21-May’22) reporting data & 3 snapshots month merged into the data( Sep, oct & nov’21). For multiple variables I need to find 3 month growth rates as of every snapshot(standing in snapshot date sep’21 — what is the 3 month growth rate of cust id), similarly for october & november snapshot.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?