Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Syndicate_Admin
Administrator
Administrator

Accumulated 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])))

Captura de pantalla 2022-08-31 142541.jpg

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

I achieved this with:

ACCUMULATED = TOTALYTD([Boxes Sold],Calendar[Date])

View solution in original post

6 REPLIES 6
Syndicate_Admin
Administrator
Administrator

I achieved this with:

ACCUMULATED = TOTALYTD([Boxes Sold],Calendar[Date])
jgeddes
Super User
Super User

How are you calculating Cajas Vendidas?

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





jgeddes
Super User
Super User

Are you expecting the result to look like...

jgeddes_0-1661975981819.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





How did you do it?

I used

CALCULATE(

SUM(VentaProductos[Cajas Vendidas]),
FILTER(ALL(VentaProductos), VentaProductos[Fecha de aceptacion] <= MAX(VentaProductos[Fecha de aceptacion]))
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Yes, that's what I hope

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.