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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RIboGustavo
Frequent Visitor

Running total by group

Hey guys, 

I'm trying to do a rolling cumulative capital by loan as follows:

schduleLoanPrincipalDueDateRT REQUIRED!
11abc3001/1/2022300
21abc3002/1/2022600
31abc3003/1/2022900
41abc3004/1/20221200
51abc3005/1/20221500
62df2001/1/2022200
72df2002/1/2022400
82df2003/1/2022600
92df2004/1/2022800
103gh5001/1/2022500
113gh5002/1/20221000
123gh5003/1/20221500
133gh5004/1/20222000
143gh5005/1/2022

2500

 

I've been going through the forum and tried several answers but nothing works. 

Tried with the following but it gives me the full total not cumulative by date. 

 

 

 

 

Column = CALCULATE( SUMX(loanschedules, loanschedules[principal]), filter(ALLEXCEPT(loanschedules,loanschedules[_loan]), loanschedules[Date.1] <= max(loanschedules[Date.1])))

 

 

 

 

Thanks all in advance. 

Cheers

1 ACCEPTED SOLUTION
RIboGustavo
Frequent Visitor

Solved. thanks all

Column = CALCULATE(SUM(loanschedules[principal]), FILTER(ALLEXCEPT(loanschedules,loanschedules[_loan]), loanschedules[Date.1] <= EARLIER(loanschedules[Date.1])))

 

View solution in original post

1 REPLY 1
RIboGustavo
Frequent Visitor

Solved. thanks all

Column = CALCULATE(SUM(loanschedules[principal]), FILTER(ALLEXCEPT(loanschedules,loanschedules[_loan]), loanschedules[Date.1] <= EARLIER(loanschedules[Date.1])))

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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