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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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