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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Overdebt receivables for particular date

Hello,

 

I'm struggling with this question for several weeks. Maybe someone has done that and will have some tips for me.

I want to calculate how many overdue receivables was on a particular date.

For this I have to evaluate:

  1. Which of documents are overdue for that day
  2. How much receivable is for those documents

I tried to calculate three measures:

How much days document are overdue:

 

PastDue = DATEDIFF(FIRSTDATE('Customer Ledger Entry'[Due date]); MAX('Calendar'[Date]);DAY)

Calculated column for how much receivable document has:

 

Receivable, EUR = CALCULATE(SUM('Detailed Customer Ledger Entry'[Amount (LCY)]); FILTER('Detailed Customer Ledger Entry';'Detailed Customer Ledger Entry'[KEY1]='Customer Ledger Entry'[KEY1]))

 And tried to calculate how many overdue receivables are for particular date:

 

OverDue Receivable = SUMX(
    FILTER('Customer Ledger Entry'; [PastDue]>0);[Receivable, EUR])

But it returns blank, I think it's because PastDue is calculated not row-wise

 

Screenshot_42.png

Maybe you have some tips on how can I solve this question?

 

PBIX example:

https://drive.google.com/file/d/16gb8jRmd-Fb9OicHUvhZfwkN3k8a1X-Y/view?usp=sharing

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Create a calculate column [PastDue Column] in table 'Custom legder Entry' instead if measure. Then in table 'Calendar', modify the measure [OverDue Receivable] using DAX as below:

OverDue Receivable = SUMX(
FILTER(ALL('Customer Ledger Entry'), [PastDue Column]>0),[Receivable, EUR])

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks, @v-yuta-msft for your support, but it's not quite what I needed.

 

I need to calculate overdue receivable for particular documents and month.

  • Firstly to filter all documents till MAX calendar date
  • Calculate PastDue date from Due date till max Calendar date
  • SUM all receivable where PastDue is more than 0.

 

And it should be document row dynamic calculations.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.

Users online (4,492)