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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nsolanki
Regular Visitor

AR Reserves Calculation

Hello,
I wanted to calculate AR Balance reserves with Power BI dax, calculation of reserves as follows

Days past term measure should be month end date minus due date
if Days past term greater than 60 and less 90 then Reserves will be 25% of AR balance
if Days past term greater than 90 and less 120 then Reserves will be 50% of AR balance
Days past term above 120 days Reserves 100% of AR Balance.

Questions

  1. How should be dax written so as to calculate days past term each month end date minus Due Date (we follow 4-4-5 calendar)
  2. I wanted to compare current month reserves with last month reserves (Last month reserves should remain intact meaning if any payment received during current should not impact my reserves)
  3. I have calculated reserves, but it is not working properly. When I filtered on month it just shows invoices for that month.
  4. I have written following dax to calculate reserves. However when filtered business unit it not showing currect numbers.
  5. currently I am calculating manual days past term manually.

SWITCH(TRUE(),

[Days Past Term Present] >= 61 && [Days Past Term Present] <= 91, [Balance] *0.25,

[Days Past Term Present] >= 92 && [Days Past Term Present] <= 121, [Balance] *0.5,

[Days Past Term Present] >= 122 , [Balance] *1

)

 

 
nsolanki_1-1705131871395.png

 

 

 
1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.