Forum Discussion
Syndicate_Admin
Administrator
4 years agoAccumulated sum goes wrong
Hello!
I have a "Product Sale" table with a "Total Boxes" column
I try to add the accumulated "Total Boxes" per month, I tried with the following function: but it goes wrong.
ACCUMULATED = CALCULATE(SUM(SaleProducts[Total Boxes]),
FILTER(ALL(VentaProductos),
SaleProducts[Date of acceptance]<=Max(SaleProducts[Date of acceptance])))
I achieved this with:
ACCUMULATED = TOTALYTD([Boxes Sold],Calendar[Date])
6 Replies
- jgeddes
Super User
Are you expecting the result to look like...
- Syndicate_Admin
Administrator
Yes, that's what I hope
- Syndicate_Admin
Administrator
How did you do it?
- jgeddes
Super User
I used
CALCULATE(
SUM(VentaProductos[Cajas Vendidas]),
FILTER(ALL(VentaProductos), VentaProductos[Fecha de aceptacion] <= MAX(VentaProductos[Fecha de aceptacion]))
)
- jgeddes
Super User
How are you calculating Cajas Vendidas?
- Syndicate_Admin
Administrator
I achieved this with:
ACCUMULATED = TOTALYTD([Boxes Sold],Calendar[Date])