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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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.

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.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors