Forum Discussion

sassaboss's avatar
sassaboss
Frequent Visitor
5 years ago

Accounts Payable overdue

Hello,

I am trying to solve one prblem with overdue and ageing. I can not solve that even in excel πŸ™‚ 
Problem is that one vendor can have multiple invoices and multiple payments. There is no closing on Invoice row base but in a separate row which belongs to TYPE Payments. I need to calculate Total due for every vendor. And if it is possible to calculate ageing or overdue on basis 0-15, 16-30, >30. I tried hunderd times in excel to get some clue how it can be done, and to use that logic in Power Bi but without much success.
I tried to create some measures, but no πŸ™‚

Overdue = CALCULATE(SUM(BS_GK_[CREDIT])-SUM(BS_GK[DEBIT]),FILTER(BS_GK_,BS_GK[DUE_DATE]<TODAY()))

 

Many Thanks for any kind of help.


Here is table with one vendor and its invoice and payments and due dates.

TYPEIDATEDUE_DATEACCOUNTVENDOR_CODEVENDOR_NAMEDOCUMENTDEBITCREDITBALANCE
Invoice01.01.2105.03.214350P-90059PLATINUMA10,0010.000,00-10.000,00
Invoice01.01.2105.04.214350P-90059PLATINUMA20,0012.000,00-12.000,00
Invoice01.01.2110.04.214350P-90059PLATINUMA30,003.500,00-3.500,00
Invoice01.01.2115.05.214350P-90059PLATINUMA40,005.000,00-5.000,00
Invoice01.01.2125.05.214350P-90059PLATINUMA50,0010.500,00-10.500,00
Invoice01.01.2125.06.214350P-90059PLATINUMA60,002.500,00-2.500,00
Invoice01.01.2127.06.214350P-90059PLATINUMA70,004.000,00-4.000,00
Payment05.03.21 4350P-90059PLATINUMPayment 120.000,000,0020.000,00
Payment20.04.21 4350P-90059PLATINUMPayment 210.000,000,0010.000,00
Payment31.05.21 4350P-90059PLATINUMPayment 35.000,000,005.000,00

 

 

 

 

2 Replies