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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Cumulative SUMX of Value by Week and WeekNumber Not working properly

Hi,

 

I am trying to have the cumulative sum on the last day of my week (day 7 = saturday) and it is working till a certain date. I have values showing up that don't even exists in my data (nb accidents/incidents = 0).

 

Here is my function and 3 screenshots to explain the situation : 

Nb_Acc_Hebdo = SUMX(FILTER('SST (3)';WEEKNUM('SST (3)'[Date]) = WEEKNUM(EARLIER('SST (3)'[Date])) && 'SST (3)'[Date] <= EARLIER('SST (3)'[Date]));'SST (3)'[Nb Accidents/Incidents(3)])
 
1.png2.png3.png
1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

It looks like above formula returns correct cumulative total. What is your desired output? Please illustrate with examples.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors