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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.