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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
svelamuri
Regular Visitor

Update AR Aging with Amounts Received

I have an Accounts Receivable aging report that I want to update as we receive funds. The amounts received are not consistent with the exact dollar amount of the dues, so I have to subtract the amounts received from the earliest first.

 

For example, from the report below, if we receive $10 from Bank of America Amex, it should be subtracted from the earliest (30 days) first and then the remaining from the recent (Current due).

So after updating, there should be nothing under 30 days due. The current due would be $7.64.

I couldn't figure out a way to start working on this. Any help would be greatly appreciated, thank you!

 

This is how the aging report looks like: 

 

Screenshot (401).png

This is how the data looks: 

 

Screenshot (402).png

 

The data of amounts received looks like this: 

 

Screenshot (404).png

 

The relationship between the two table is many to many:

 

Screenshot (405).png

2 REPLIES 2
johnbasha33
Super User
Super User

Hi @svelamuri 

try below measure

Current Due =
VAR RemainingDues =
ADDCOLUMNS (
FILTER (
AgingReport,
[Amount Due] > [Amount Received]
),
"RemainingDues", [Amount Due] - [Amount Received]
)
RETURN
SUMX ( RemainingDues, [RemainingDues] )

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Hi @johnbasha33 

Thank you for your response.

However, this doesn't work in my case because Amount Due and Amount received are not in the same table or the same format. Please refer to the screenshots - let me know if you need more information. 

 

Also, I need to be subtracting the amount received from amount due in the descending order of the aging category - so subtract from 60 days first (if anything in 60 days exists), then any remaining amount received from 30 days and lastly from current due. 

 

Thank you!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.