Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
This is my data
Customer
Account
Date
Balance
Status
1
1001
01/04/2020
-100
Exceed
02/04/2020
-150
03/04/2020
200
Normal
20/04/2020
-120
10/05/2020
-110
05/06/2020
20
30/07/2020
-60
1002
180
10/04/2020
-90
30/04/2020
220
230
12/05/2020
-140
08/08/2020
110
2
1003
290
15/04/2020
-300
350
15/05/2020
320
12/07/2020
-450
02/08/2020
-600
I want to Display for each Account:
1 - The Last Time the status change from normal to Exceed.
2 - Today Status (Last Status).
3 - How many time the Status change from Normal to Exceed.
4 - Total Exceed days.
This is the output:
Last Time Start Exceed
Today Status
Times went Exceed
Total Exceed Days
3
48
108
15
And
Days To Back to normal
46
88
Thank you in advance