Hi community,
I have the purchase details for a number of accounts in the following format:
AccountID | PurchaseDateTime | PurchaseAmount |
12345678 | 2018-10-01 08:10:15 | 60 |
12345678 | 2018-10-01 18:52:34 | 40 |
12345678 | 2018-10-02 14:45:01 | 15 |
12345678 | 2018-10-03 01:31:06 | 20 |
12345678 | 2018-10-03 05:25:55 | 15 |
12345678 | 2018-10-03 13:06:15 | 60 |
I need to check if any of the accounts exceeded more than a certain amount, eg. £100 in purchases in any rolling 24 hour period.
I've looked around at related posts here in the community and tried approaches involving Tile, Multi Row Formulas and the Moving Summarize tool from AdamR but haven't managed to get my head around it so far.
Would be very grateful if anyone could point me in the right direction with this!
Thanks in advance
Solved! Go to Solution.
Hi @paul_f
Here is an initial solution for you. To solve this one, I think that a macro will be best. It can go transaction by transaction to compare it to all other data and determine what transactions occurred 24h before.
Let me know what you think.
Cheers
Kat
A very big thanks to both of you for your time
What is the macro you have used here? I am trying to replicate this flow for some customer data analysis on total spend over a 24 hour period