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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cumulative total with weeks with no values

Hi! I am having a problem with a cumulative total

I have this measure

 

Q_Unsuscriptions =
COUNT(Unsuscriptions[UnsuscriptionDate])

 

Cumulative Unsuscription =

CALCULATE(
[Q_Unsuscriptions],
FILTER(
ALL(Unsuscriptions),
Unsuscriptions[UnsuscriptionDate] <= MAX(Unsuscriptions[UnsuscriptionDate])
)
)

 

I have a Calendar date and I want to resume this data weekly, the problem is a week has 0 unsuscriptions, the cumulative total is broken.

 

TomasB_0-1700086636745.png

I want to see a 48 in 5/11.

 

Thank you so much!

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Create a date table, join it with the date of your table, and use measure-like. Use period from date table on axis, filter and measure

 

 

Cumulative Unsuscription =

CALCULATE(
[Q_Unsuscriptions],
FILTER(
ALL(Date),
Date[Date] <= MAX(Date[Date]) ))

 

Cumm Based on Date = CALCULATE([Q_Unsuscriptions], Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))

 

 

Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42

 

 

You can also use window

Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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