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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mjesusmar
Regular Visitor

Cumulative Sum depending on two columns

Hello all,

 

I'm new in the community, so i dont really know how to use the forum 😞 hope i'm not causing any trouble with the topic.

 

Thing is, i have the following table in Power BI

mjesusmar_0-1593376867396.png


What i'm looking for is to Sum, depending on the date and the column "Gerente FAAS". The field containing the values to sum is "Venta Meta Semanal"
so, i need to create a new column that should give me the same result as this one in excel

mjesusmar_1-1593377136758.png

 

Ther formula is:

mjesusmar_2-1593377163992.png

Hope someone can help me!
Thanks in advance

 

1 ACCEPTED SOLUTION
mjesusmar
Regular Visitor

Solved! Gonna leave the answer, hope it can help somebody

mjesusmar_1-1593379316499.png

Venta Estimada = CALCULATE(SUM(Progreso[Venta Meta Semanal]);FILTER(Progreso;Progreso[Gerente FAAS]=EARLIER(Progreso[Gerente FAAS]));Progreso[Semana]<=EARLIER(Progreso[Semana]))
 
Thanks!

 

View solution in original post

1 REPLY 1
mjesusmar
Regular Visitor

Solved! Gonna leave the answer, hope it can help somebody

mjesusmar_1-1593379316499.png

Venta Estimada = CALCULATE(SUM(Progreso[Venta Meta Semanal]);FILTER(Progreso;Progreso[Gerente FAAS]=EARLIER(Progreso[Gerente FAAS]));Progreso[Semana]<=EARLIER(Progreso[Semana]))
 
Thanks!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors