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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sassaboss
Frequent Visitor

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 2
amitchandak
Super User
Super User

@sassaboss , to have a bucket on measure, you need to do dynamic segmenetation.

 

That need independent table and new measures to use that

 

refer to my blog and video

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks a lot. I will watch video and try to figure out some kind of solution.
In mean time I am breaking my head in Excel. I used those formulas and maybe I am going toward some primitive solution 🙂
Simply said I have to figure on "paper"

sassaboss_0-1622710747662.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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