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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors