Hi,
I am trying to create a query from one table where quantities are added to a basket each day, these quantities are running sums of all other previous quantities in the same basket.
What I am trying to achieve is, when I get the new daily quantities, I want to remove the previous days quantities in a new column using a query which will then show the days quantity for each basket.
However, there are often new baskets added each day, so these need to be included into the daily quantities.
E.g
BasketTBL
BasketNo Colour DateSent Quantity
1 Red 23/10/21 200
2 Blue 23/10/21 100
1 Red 24/10/21 250
2 Blue 24/10/21 150
3 Yellow 24/10/21 130
So when I get the quantities on the 24/10/21, I want the following result from the query
BasketNo Colour DateSent Quantity
1 Red 24/10/21 50
2 Blue 24/10/21 50
3 Yellow 24/10/21 130
Is this possible?