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
dantheram
Helper II
Helper II

Cumulative totals - 0

hi all

 

i have two cumulative totals which encounter issues when the periodic value is '0' - they dont simply use the previous number add '0' they leave gaps in the data, as below - 

 

dantheram_0-1670375515815.png

 

the two formulas are - 

 

RT Actuals =
    CALCULATE (
     SUM ('SAFs Actuals'[Incident Count]),
        FILTER(
        ALLSELECTED('SAFs Actuals'), 'SAFs Actuals'[Index] <= MAX('SAFs Actuals'[Index])))
 
and
 
RT Targets =
    CALCULATE (
     SUM ('Derby SAF Targets'[Target Value]),
        FILTER(
        ALLSELECTED('Calendar'), 'Calendar'[Index] <= MAX('SAFs Actuals'[Index])))
 
how do i alter them to remove the gaps?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dantheram , the second(With modification)  one should not show gap, if the calendar is marked as date table, having single directional join and the x-axis is using date from calender table

 

Try like

 

RT Targets =
CALCULATE (
SUM ('Derby SAF Targets'[Target Value]),
FILTER(
ALLSELECTED('Calendar'), 'Calendar'[Date] <= MAX('Calendar'[Date])))

 

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-bd52912a5b...
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

View solution in original post

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @dantheram ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@dantheram , the second(With modification)  one should not show gap, if the calendar is marked as date table, having single directional join and the x-axis is using date from calender table

 

Try like

 

RT Targets =
CALCULATE (
SUM ('Derby SAF Targets'[Target Value]),
FILTER(
ALLSELECTED('Calendar'), 'Calendar'[Date] <= MAX('Calendar'[Date])))

 

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-bd52912a5b...
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.