cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kolumam2810
New Member

Outstanding Balance calculation

I have the below table. I need to calculate the outstanding amount as per the below formula.

Outstanding Amount = (Principal Amount - Principal Amount * Percentage)

So for the first date range (31/12/2020 - 29/6/2021), the outstanding amount will be (100 - (100*0.0136)) = 98.64

for the next date range (30/6/2021 - 30/12/2021), the outstanding amount will be (98.64 - (100*0.0197) = 96.67 

 

As you can see, I need to take the previous value to calculate the outstanding for each date range. How do I accomplish this for each project?

TrancheRepayment Schedule Start DateRepayment Schedule End Date%PercentageProject NamePrincipal Amount (USD)
A31/12/202029/6/20211.360.0136Project A100
A30/6/202130/12/20211.970.0197Project A100
A31/12/202129/6/20224.050.0405Project A100
A30/6/202230/12/20224.020.0402Project A100
A31/12/202229/6/20234.20.042Project A100
A30/6/202330/12/20234.170.0417Project A100
A31/12/202329/6/20244.360.0436Project A100
A30/6/202430/12/20244.360.0436Project A100
A31/12/20242/6/20254.530.0453Project A100
A3/6/20253/6/202566.980.6698Project A100
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Kolumam2810 ,

 

Try this:

 

Column:

Column = 
'Table'[Principal Amount (USD)]
    - SUMX (
        FILTER (
            'Table',
            'Table'[Tranche] = EARLIER ( 'Table'[Tranche] )
                && 'Table'[Repayment Schedule Start Date]
                    <= EARLIER ( 'Table'[Repayment Schedule Start Date] )
        ),
        'Table'[Principal Amount (USD)] * 'Table'[Percentage]
    )

 

Measures:

Measure = 
SUM ( 'Table'[Principal Amount (USD)] )
    - SUMX (
        FILTER (
            ALLSELECTED('Table'),
            'Table'[Tranche] = MAX ( 'Table'[Tranche] )
                && 'Table'[Repayment Schedule Start Date]
                    <= MAX( 'Table'[Repayment Schedule Start Date] )
        ),
        'Table'[Principal Amount (USD)] * 'Table'[Percentage]
    )
Measure - ModifiedTotalValue = SUMX('Table',[Measure])

principal.PNG

 

 

Best Regards,

Icey

 

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

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @Kolumam2810 ,

 

Try this:

 

Column:

Column = 
'Table'[Principal Amount (USD)]
    - SUMX (
        FILTER (
            'Table',
            'Table'[Tranche] = EARLIER ( 'Table'[Tranche] )
                && 'Table'[Repayment Schedule Start Date]
                    <= EARLIER ( 'Table'[Repayment Schedule Start Date] )
        ),
        'Table'[Principal Amount (USD)] * 'Table'[Percentage]
    )

 

Measures:

Measure = 
SUM ( 'Table'[Principal Amount (USD)] )
    - SUMX (
        FILTER (
            ALLSELECTED('Table'),
            'Table'[Tranche] = MAX ( 'Table'[Tranche] )
                && 'Table'[Repayment Schedule Start Date]
                    <= MAX( 'Table'[Repayment Schedule Start Date] )
        ),
        'Table'[Principal Amount (USD)] * 'Table'[Percentage]
    )
Measure - ModifiedTotalValue = SUMX('Table',[Measure])

principal.PNG

 

 

Best Regards,

Icey

 

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

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors