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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
matt0902
Frequent Visitor

Reverse cumulative sum - to count dates

Hi there community

 

I am trying to figure out how to create a reverse cumulative sum that counts dates. I'd be grateful if anyone could help me with a Powerquery or DAX solution.

 

Input:

matt0902_0-1696172064696.png

Required output in PowerBI (assuming today's date is 2/10/23):

matt0902_1-1696172112548.png

 

 

2 REPLIES 2
TomMartens
Super User
Super User

Hey @matt0902 ,

 

please explain

  • from where the 28th of September is comin
  • why there is India with 3rd of October
  • why the the Forecast rev **bleep** is 2 for France at the 1st and 2nd of October.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi Tom

 

The Forecast Date is when a defect is planned to be closed. The Actual Date is when the defect was closed. The reverse cumulative sum tracks the number of defects not yet closed over time (Forecast is the plan and Actual is the actual). I have included France and India to provide functionality to filter by a field - this could be a range of fields associated with the dataset e.g. country, location, responsible person, subsystem. Here are some example charts that I am trying to reproduce using the above data. This indicates that we are broadly on track to close everything as planned. Normally I would have a much bigger dataset so an extrapolation of the actual line into the future would be more reliable.

 

matt0902_2-1696207605837.png

matt0902_3-1696207644271.pngmatt0902_4-1696207694809.png

 

Regards

 

 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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