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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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