Forum Discussion
Summing values between 2 dates returning wrong values
In my database I have various machines (see CM01, CM02 etc.) How much these machines mine is recorded by each day and is split into 2 shifts (Day or Night). This means that in the table I have there are multiple entires for the same date, but the amount mined is different for each piece of equipment (See below).
At the moment, I'm trying to determine how to SUM the amount mined each shift between 2 dates. I have been using this formula to do that:
I hope this is enough information to see what I'm doing wrong, I'm assuming it is something in my formula but at this point I am completely unsure what that might be.
EDIT: The original formula I used returned the exact same result:
- Anonymous7 years ago
So it turns out that the issue was to do with the relationship between the Equipment column and the Machine column. Since it is a many to many relationship, I had to set it to a one way filter where the Machine table filtered the Equipment table. Originally, I had it in reverse to this. Hope this helps someone else.
2 Replies
- AnonymousNot applicable
If anything is unclear please let me know, this is still plaguing me and has been for days now
- AnonymousNot applicable
So it turns out that the issue was to do with the relationship between the Equipment column and the Machine column. Since it is a many to many relationship, I had to set it to a one way filter where the Machine table filtered the Equipment table. Originally, I had it in reverse to this. Hope this helps someone else.