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
ishan_1510
Frequent Visitor

Calculate outstanding NPA loan amount over date

Hi guys,

I have a table as shown below and I have to calculate outstanding loan amount over time (date format - mm/dd/yyyy)

 NPADataTable.JPG

For eg. in this case from 8/2/2022 till 9/2/2022 outstanding amout will be $100, on 9/3/2022 the out standing amount will become $250 on 9/6/2022 it will be $300 and accordingy it will reduce to $200 on 9/25/2022(amount recovered) and to $150 on 10/2/2022.

Null recovery date represents that this amount is outstanding as of TODAY().

 

I want to represent this on a column chart with days->months->year heirrarchy on x-axis and outstanding amount on y-axis.

 

Can someone please help me out in this issue?

 

Regards,

Ishan

 

 

1 ACCEPTED SOLUTION

Hi Hoang,

Thanks for your response, but I found another way to get this calculation done

View solution in original post

2 REPLIES 2
HoangHugo
Solution Specialist
Solution Specialist

Hi, assume you have a Date column to choose period make calculate

 

NPA loan = 

var sum =SUM([Outstanding amount])
var maxdate = MAX([date column])

var NPA = CALCULATE (sum,[NPA date]<=maxdate)

var Recovery = CALCULATE (sum,[Recovery date]<=maxdate,[Recovery date] <>Blank())

return NPA +Recovery

Hi Hoang,

Thanks for your response, but I found another way to get this calculation done

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.