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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.