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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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