Where vDates is a variable that contains the selected date.
I then tried to find the number of active customers by taking the above mentioned formula and adding in an aggregate function by Customer, the result should've had been 1000, however i'm returning a value of 848, kindly assist.
Below is my my formula to compute the active customers but it is not seemingly working properly: