Accounts Receivable ledger via Power Query

egspen2

New Member
Joined
Apr 22, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I am trying to use Power Query to create an accounts receivable (AR) ledger that updates as new revenue and payment detail is added to its respective file. Here is my scenario:

* I have a monthly revenue file (typically one file per month) that has the revenue recorded for each transaction. These are all kept in the same revenue folder.
* I have daily payment files that report the previous day's payments. These are all kept in a separate payments folder.
* The two files (revenue and payment) have a common "Invoice ID" field that I want to do a lookup on to ultimately calculate Revenue - Payments = Accounts Receivable. The Invoice ID for revenue typically only shows up once but it is regularly the case that the same Invoice ID can show up multiple times across payment files (i.e., I can receive multiple payments that need to be applied to one revenue entry). When this is the case, I want to sum up all payments with the same Invoice ID to show one total payment amount to be compared against the respective revenue for that Invoice ID.
* My goal is to link the query (queries) to the two folders so that whenever new data is added to the folder, my AR ledger (most likely in a table or pivot table output in Excel) update via refresh.
* Important to note that both sets of data (especially the daily payment files) include lots of rows of data.

I have tried a few methods and have had some success but here are the problems I've run into:
* I have merged the two queries but when I try to add the revenue and payment data together via Transform > Addition, that option is grayed out for me.
* With only 3 months of payment data (89 daily payment files - ~6MB) and 4 months of revenue data (4 files, total of ~10MB) as my source files, the merged query output file is 12MB and relatively slow. I'm operating from a Microsoft Surface with 16GB of RAM, 15.6 usable currently.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
* I have merged the two queries but when I try to add the revenue and payment data together via Transform > Addition, that option is grayed out for me.

In order for this to be enabled, you have to select at least one numerical type column. The button in Transform will be enabled at that point.
If one or more of the selected columns to be added together are not a numerical type, the Addition function is no longer enabled.

The use of Transform > Addition is to update the existing column to operate with another value or column. If you need to continue to see the original value, your best bet would be to use Add Column > Standard > Add
 
Upvote 0

Forum statistics

Threads
1,224,810
Messages
6,181,079
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top