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

Notifications

Announcements

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)
  • Adis Profile Picture
    6,085 Super User 2025 Season 2 on at
    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
  • OA-28072225-0 Profile Picture
    9 on at
    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.
  • André Arnaud de Calavon Profile Picture
    301,459 Super User 2025 Season 2 on at
    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. 
  • Suggested answer
    BillurSamdancioglu Profile Picture
    19,856 Most Valuable Professional on at
    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.
     
  • Suggested answer
    saurabh bharti Profile Picture
    15,039 Moderator on at
    HI,
     
    We already have the data entity for getting this aging and learn portal also explains how to export this data externally.
     

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 679 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 292 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans