Debtors Aging Help

AusStig

New Member
Joined
Apr 15, 2014
Messages
1
Hi all,

Need some help with aging debtors invoice in powerpivot. I'm a total newbie to Powerpivot.

I followed the blog post at these two websites:
Aged Debtors–Dynamic Banding in DAX « PowerPivotPro
Excel extras: aged debtors in PowerPivot

I can get the first formula (Debtor Value) to work as demonstrated, however, I cannot get the second formula to apply the banding. It calculates the correct amount by payor, but doesn't break it down into the aging buckets.

Obviously my tables are somewhat different to the example. Basically I have a table with all of the invoices and the invoice date (table: Amount Details), I have that linked to a "date key" table (table: Periods) by the invoice date. Plus I have the "bands" table (table: Aging Bands).

Here are the formulae:
Debtor Value:=Calculate(SUM('Amount Details'[Net Amount]),filter(ALL(Periods),COUNTROWS(FILTER(Periods,EARLIER(Periods[End Of Month])<=MAX(Periods[End Of Month])))>0))

Aged Debtor:=if(COUNTROWS('Aging Bands')=1,CALCULATE([Debtor Value],FILTER(Periods,MAXX('Transaction Details',MAX(Periods[End Of Month])-EARLIER(Periods[Date]))>=MAX('Aging Bands'[Days From])&&MAXX('Transaction Details',MAX(Periods[End Of Month])-EARLIER(Periods[Date]))<=MAX('Aging Bands'[Days To]))),[Debtor Value])

Any help would be awesome. Thank you!
Matt
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,606
Messages
6,120,478
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top