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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Running Totals in descending order with filters



I'm not sure why I am not getting this so I could please use some help.  I have the following dataset:

Task NamePlanned
task 111/29/20210 11/29/2021
task218/28/20200 18/28/2020
task312/16/20210 12/16/2021
task419/11/20200 19/11/2020
task614/30/20210 14/30/2021
task711/29/20210 11/29/2021
task916/7/20210 16/7/2021
task1319/11/20200 19/11/2020


I need to be able to graph the following measures:

  1. Planned Count = starting at min value in Planned Finish, summing all Planned Count and decreasing to zero, including every day from a dates table so graphing is smooth
    1. example: starts at 8/28/20 with the first value of 13.  Stays at 13 until 9/11/20 where it drops to 11 (2 tasks completed on same day), then 10 on 1/29/21, etc. until it reachs zero on 8/27/21
  2. Commit Count = Same as Planned count, just counting items with non-blank values Commit Finish
  3. Actual Count = Same as Planned count, just counting items with non-blank values Actual Finish

Any assistance would be appreciated!


Thank you!!

Frequent Visitor

@amitchandak While I admire your correct syntax your spelling of count might have missed something. ;-O


Unfortunately this produces lines that start with the first date in the date table instead of the first date where there is data and it also produces flat lines for actual.


After thinking about this a little more I realize my requirements change a little.  


The lines should be based on the original data:
Planned: starts at 8/28/2020 and steps down from 13 to 0
Actual: starts at 8/28/20 and starts at 13 and counts down 8
Commit: starts at 7/19/21 and starts at 5 and counts down to zero.


Actual + Commit = Planned


Start dates are always the first date where there is a count.


Existing graph:





Super User
Super User

@jschaefer , I think you need

Reverse cumulative

Join all three dates with date table


then create measures like


planned = sum(Table[Planned Count])
Commit = calculate(sum(Table[Commit Count]), userelationship('Date'[date], Table[Commit Finish]), not(isblank(Table[Commit Finish])))
Actual = calculate(sum(Table[Commit Count]), userelationship('Date'[date], Table[Actual Finish]), not(isblank(Table[Actual Finish])))

planned **bleep** = calculate([planned], filter(allselected('Date'),'Date'[date] >=max('Date'[date])))
Commit **bleep** = calculate([Commit], filter(allselected('Date'),'Date'[date] >=max('Date'[date])))
Actual **bleep** = calculate([Actual], filter(allselected('Date'),'Date'[date] >=max('Date'[date])))



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.


refer to my blog on similar topic if needed

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors