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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
khiconlauca
Frequent Visitor

DAX - Calculate accounts receivable by each day

I have a question and would appreciate support from everyone.

This is my source data:

Order Table: This is a table providing information about sales revenue recorded for each sales invoice on a specific day.

DateReference numberTotal sale
1/1/2023XK0015000
1/1/2023XK0026000
1/1/2023XK0037000
1/1/2023XK0048000
2/1/2023XK0055000
2/1/2023XK0066000
3/1/2023XK0077000
4/1/2023XK0088000

 

Payment: This table contains information about cash receipt transactions conducted per order on a specific day

DateReference numberTotal received amount
1/1/2023RC012000
1/1/2023RC021000
1/1/2023RC03500
2/1/2023RC016000
2/1/2023RC025000

 

This is the report I need to build on Power BI. I need to find a solution to this issue, and I really hope to receive help from everyone

From 01/01/2023 To 04/01/2023
DateReference numberDescriptionIncrease in IncurredDecrease in IncurredClosing balance
  Opening balance  30,000
  Order52,000082,000
1/1/2023RC01Payment0200080,000
1/1/2023RC02Payment0100079,000
1/1/2023RC03Payment050078,500
2/1/2023RC01Payment0600072,500
2/1/2023RC02Payment0500067,500
  Total52,00014,50067,500

 

Note: The Opening balance is equal to the Closing balance of the previous period (with a date < 01/01/2023)

 

2 REPLIES 2
lbendlin
Super User
Super User

why are the orders lumped together rather than attributed to the order placement day?

Because it is used to calculate increases during the period

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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