Transaction volume as in Bank Transaction Volume ( currency/cash/wire transactions by individuals [you, me, others :)]).
So each day, Source System delivers these transaction.
So I want to see if there are volume deviation for any day by comparing historical volume.
i.e. for a given date: 14-Dec-2019 --- Say we have received 150 Transactions for SRC1 which is far less compared to historical volume (ranged between 250-450 Transaction daily; sample data given below).
so in the above case
maxVolRange=450
minVolRange=250
if $volume < $minVolRange or $volume > $maxVolRange
then
validation job fail (or an e-Mail will come)
else
do bla bla
fi
The value of maxVolRange
and minVolRange
should change daily by checking historical data of Transactions received from source.
Sample data:
Date,Day of Week,Src1 Trxn Count,src2 Trxn Count
13-Dec-19,Friday,288,12705
12-Dec-19,Thursday,258,12064
11-Dec-19,Wednesday,419,11622
10-Dec-19,Tuesday,204,12287
9-Dec-19,Monday,282,11842
7-Dec-19,Saturday,0,335
6-Dec-19,Friday,295,12577
5-Dec-19,Thursday,513,12240
4-Dec-19,Wednesday,529,12257
3-Dec-19,Tuesday,442,11598
2-Dec-19,Monday,252,12496
So I want derive these maxVolRange
and minVolRange
on daily basis by calculating average/mean average... (maybe?) to check if we are receiving correct data or there is no missing data.
Please let me know if I was able to explain this.
~ Saps.