web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Customer Aging Receivable Period

(1) ShareShare
ReportReport
Posted on by 9
Hello Everyone,

I am a beginner to D365 F&O and working on creating Power BI reports for customer transactions.
Currently, I am using Custtrans since this table holds customer transactions. Below is the SQL script I intend to use for my fact table. 
I’ve attached a screenshot of the aging period balance report generated in D365 F&O, which I’m trying to replicate in Power BI. 
 

image

I can successfully retrieve customer balances from CustTrans, but I'm encountering difficulties grouping these transactions into AR aging buckets in Power BI to match the desired output. One challenge is differentiating between paid, unpaid, open, and closed invoices and payments since all related transactions are posted to the customer's account. Unlike SAP, where cleared invoices are removed from the account, D365 F&O appears to retain all transactions or those posting into the system do not clear payment received against invoices.


I suspect that I'm missing essential tables to build a comprehensive fact table for my analysis. I'm currently relying on a view created by a D365 developer, but I lack access to the VM or SSRS to explore further. I need guidance on the necessary tables to create a fact table for this purpose. Thank you for your help.

I also attached the PBIX file and excel file I am using for my report.

select
	CT.ACCOUNTNUM AS CUSTOMERID,
	DPT.NAME AS CUSTOMERNAME,
	ct.DATAAREAID as company,
	CT.INVOICE AS INVOICEID,
	CT.VOUCHER AS VOUCHER,
	cast(CT.TRANSDATE as date) AS TRANSACTIONDATE,
	cast(CT.DueDate as date) AS DueDate,
	ct.Closed,
	CT.AMOUNTCUR AS AMOUNT,
	ctt.PaymTermId,
	ct.InvoiceTYpe_IT_$Label,
	
FROM Custtrans CT
Left JOIN CUSTTABLE CTT ON CTT.ACCOUNTNUM = CT.ACCOUNTNUM
INNER JOIN DIRPARTYTABLE DPT ON DPT.RECID = CTT.PARTY

 
I have the same question (0)
  • Suggested answer
    saurabh bharti Profile Picture
    15,035 Moderator on at
    Customer Aging Receivable Period
    HI,
     
    We already have the data entity for getting this aging and learn portal also explains how to export this data externally.
     
  • Suggested answer
    BillurSamdancioglu Profile Picture
    18,482 Most Valuable Professional on at
    Customer Aging Receivable Period
    Ageing report is a very complex report. Should be carefully bult while may be slow. I would advise to use the standard report codes to deploy in PBI.
     
  • André Arnaud de Calavon Profile Picture
    297,552 Super User 2025 Season 2 on at
    Customer Aging Receivable Period
    Hi,
     
    In Dynamics 365, the customer transactions do have Settlement amount fields to be able to calculate the balance for each transaction. Using the table CustSettlement, you can check which customer transactions were settled with each other (e.g. payment for an invoice), for what amount, and what date was used for the settlement. 
  • OA-28072225-0 Profile Picture
    9 on at
    Customer Aging Receivable Period
    Hello,
    Thanks for your suggestion. The goal is to add an aging calculation to the CustTrans analysis in Power BI so users can track customer statement reports.
  • Adis Profile Picture
    5,486 Super User 2025 Season 2 on at
    Customer Aging Receivable Period
    Hey,
     
    Just a general question, whats the purpose of doing it in BI? If it is "just" taking a snapshot, there is a function for that:
    Customer aging data storage - Finance | Dynamics 365 | Microsoft Learn
     
     
    Kind regards, Adis

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 789 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 607 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 497 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans