Finance - Daily Cashflows
In early 2020, shortly before the pandemic reached the UK, a client asked me to look at how they prepared their daily cashflow forecast. One of their finance managers kept the forecast in a workbook, and the CFO thought it could be improved. Cash had not been a pressing concern until then, but it soon became one as the pandemic took hold.
The workbook did its job, but it was slow to update. Many cells were linked by hand, the formulas were long and hard to maintain, foreign exchange conversions were done manually, and the work was spread across several sheets. The forecast also looked only ten days ahead.
One sheet held scheduled payments, which fell into two classes:
- Confirmed payments were ones the business was confident would go out, such as payroll and VAT payments to HMRC.
- Estimated payments were less certain, but the team still wanted them recorded.
A second sheet held scheduled receipts, which the team copied and pasted from a separate debtors workbook. These receipts were also marked as Estimated or Confirmed.
This page shows how I rebuilt the forecast in Power Query so that it runs 92 days ahead, by day and by country.
The inputs
Section titled “The inputs”The forecast draws on four input tables.
FX rates
Section titled “FX rates”The FX rates table holds an average rate against GBP for each country and month, so it needs updating about once a month.

Opening bank balances
Section titled “Opening bank balances”The bank balances table lists each bank account with its country, the currency the account is held in, and its balance at today’s date. It needs updating every day.

Payments
Section titled “Payments”The payments table lists projected payments, entered as negative numbers in the local currency of each country. Each payment is marked Confirmed or Estimated according to how certain it is.

Receipts
Section titled “Receipts”The receipts table lists projected receipts in the same layout, again in each country’s local currency and marked Confirmed or Estimated. In practice this table could be linked directly to a separate debtors schedule, but here it is assumed to be typed in, as shown below.

Building the queries
Section titled “Building the queries”1. Load the FX rates
Section titled “1. Load the FX rates”Start by loading the FX rates table into the Power Query Editor.
- Once loaded, the FX rates should look like this:

- Name the query FX_Rates.
2. Shape the payments
Section titled “2. Shape the payments”The payments table arrives with title rows, blank rows and one column per country, so it needs reshaping into one row per payment.
- Load the payments sheet into the Power Query Editor, where it looks like this:

- Remove the blank rows with the following M step:
= Table.SelectRows(Payments, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))- Remove the top two rows, which are not needed.
- Promote the first row to headers, so the payments look like this:

- Unpivot the country columns, which puts every amount in a single Value column with its country in an Attribute column:

- Add a Start of Month column, calculated from the Date column.
- Use Merge Queries to join the payments to the FX_Rates query, matching Start of Month to Date and Attribute to Country, with a left outer join:

- Expand the Local Currency and FX Rate columns from the merged table:

- Add a custom column that divides Value by the FX rate, which converts each amount to GBP:
= Table.AddColumn(#"Expanded FX_Rates", "Custom", each [Value] / [FX Rate], type number)- Rename the two amount columns to Payment [LCY] and Payment [GBP], where LCY stands for local currency.
- Reorder the columns so that the two payment columns sit side by side.
- Remove the Start of Month column, because it was needed only for the merge.
- Sort the rows by Date, in ascending order.
- Close & Load the query back to Excel, where it now looks like this:

- Name the query Projected Payments.
The finished query in the Advanced Editor should look something like the code below. The first few steps may differ slightly, depending on how the source data is laid out.
let Source = Excel.CurrentWorkbook(), Payments = Source{[Name="Payments_Raw_Data"]}[Content], #"Removed Blank Rows" = Table.SelectRows(Payments, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))), #"Removed Top Rows" = Table.Skip(#"Removed Blank Rows",2), #"Promoted Headers1" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]), #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Promoted Headers1", {"Type", "Date", "Payment Type", "Detail"}, "Attribute", "Value"), #"Changed Type1" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Date", type date}, {"Value", type number}, {"Type", type text}, {"Payment Type", type text}, {"Detail", type text}}), #"Inserted Start of Month" = Table.AddColumn(#"Changed Type1", "Start of Month", each Date.StartOfMonth([Date]), type date), #"Merged Queries" = Table.NestedJoin(#"Inserted Start of Month",{"Start of Month", "Attribute"},FX_Rates,{"Date", "Country"},"FX_Rates",JoinKind.LeftOuter), #"Expanded FX_Rates" = Table.ExpandTableColumn(#"Merged Queries", "FX_Rates", {"Local Currency", "FX Rate"}, {"Local Currency", "FX Rate"}), #"Added Custom" = Table.AddColumn(#"Expanded FX_Rates", "Custom", each [Value] / [FX Rate], type number), #"Renamed Columns" = Table.RenameColumns(#"Added Custom",{{"Value", "Payment [LCY]"}, {"Custom", "Payment [GBP]"}, {"Attribute", "Country"}}), #"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns",{"Type", "Date", "Payment Type", "Detail", "Country", "Local Currency", "Payment [LCY]", "Payment [GBP]", "Start of Month", "FX Rate"}), #"Removed Columns" = Table.RemoveColumns(#"Reordered Columns",{"Start of Month"}), #"Sorted Rows" = Table.Sort(#"Removed Columns",{{"Date", Order.Ascending}})in #"Sorted Rows"3. Shape the receipts
Section titled “3. Shape the receipts”The receipts go through the same steps as the payments, with Receipt in place of Payment in the column names, and end up like this:

- Name the query Projected Receipts.
The finished query should look something like this:
let Source = Excel.CurrentWorkbook(), Receipts = Source{[Name="Receipts_Raw_Data"]}[Content], #"Removed Blank Rows" = Table.SelectRows(Receipts, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))), #"Removed Top Rows" = Table.Skip(#"Removed Blank Rows",2), #"Promoted Headers1" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]), #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Promoted Headers1", {"Type", "Date", "Receipt Type", "Detail"}, "Attribute", "Value"), #"Changed Type1" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Date", type date}, {"Value", type number}, {"Type", type text}, {"Receipt Type", type text}, {"Detail", type text}}), #"Inserted Start of Month" = Table.AddColumn(#"Changed Type1", "Start of Month", each Date.StartOfMonth([Date]), type date), #"Merged Queries" = Table.NestedJoin(#"Inserted Start of Month",{"Start of Month", "Attribute"},FX_Rates,{"Date", "Country"},"FX_Rates",JoinKind.LeftOuter), #"Expanded FX_Rates" = Table.ExpandTableColumn(#"Merged Queries", "FX_Rates", {"Local Currency", "FX Rate"}, {"Local Currency", "FX Rate"}), #"Added Custom" = Table.AddColumn(#"Expanded FX_Rates", "Custom", each [Value] / [FX Rate], type number), #"Renamed Columns" = Table.RenameColumns(#"Added Custom",{{"Value", "Receipt [LCY]"}, {"Custom", "Receipt [GBP]"}, {"Attribute", "Country"}}), #"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns",{"Type", "Date", "Receipt Type", "Detail", "Country", "Local Currency", "Receipt [LCY]", "Receipt [GBP]", "Start of Month", "FX Rate"}), #"Removed Columns" = Table.RemoveColumns(#"Reordered Columns",{"Start of Month"}), #"Sorted Rows" = Table.Sort(#"Removed Columns",{{"Date", Order.Ascending}})in #"Sorted Rows"4. Combine payments and receipts
Section titled “4. Combine payments and receipts”The next step puts the payments and receipts into one table, which takes two steps.
- Create a new query that references Projected Payments.
- Append Projected Receipts to it. The payment rows come first, followed by the receipt rows, and each set of rows leaves the other set’s columns empty. The picture below shows only some of the columns, but both the payment and receipt columns are present.

- Name the query Projected Payments + Receipts.
5. Expand the opening bank balances across the forecast
Section titled “5. Expand the opening bank balances across the forecast”The bank balances need converting into each country’s local currency and into GBP, and then repeating for every day of the forecast.
- Load the bank balances table, which looks like this:

- Add a Start of Month column, calculated from the Today column.
- Merge with FX_Rates, matching Start of Month to Date and Currency to Local Currency. This merge differs from the one used for payments and receipts, because each balance is stated in the currency its account is held in, which is not always the country’s local currency. The balance must therefore be converted from that currency first.

- Expand only the FX Rate column.
- Add a column that converts each balance from its account currency to GBP:
= Table.AddColumn(#"Expanded FX_Rates", "GBP", each [CCY]/[FX Rate], type number)- Merge with FX_Rates again, this time matching Start of Month to Date and Country to Country, so that each row picks up the rate for its country’s local currency:

- Expand only the FX Rate column, which arrives as FX Rate.1 because the table already has an FX Rate column.
- Add a column that converts the GBP balance into the country’s local currency:
= Table.AddColumn(#"Expanded FX_Rates1", "LCY", each [GBP]*[FX Rate.1], type number)- Remove the two FX rate columns and the Start of Month column, because they are no longer needed.
- Use Group By, with the Advanced option, to group by Today and Country, summing LCY into Bank [LCY] and GBP into Bank [GBP]. Countries with more than one account then have a single balance.

Once the Today column has been renamed to Start Date, the data looks like this:

- Add an End Date column that falls 92 days after the start date:
= Table.AddColumn(#"Renamed Columns", "End Date", each Date.AddDays([Start Date],92))- Add a Dates column that holds, for each row, a list of every date from the start date to the end date. The list is built from the dates’ serial numbers, which is why
Number.Fromappears:
= Table.AddColumn(#"Changed Type1", "Dates", each { Number.From([Start Date])..Number.From([End Date]) })The data now looks like this:

- Expand the Dates column to new rows, and set the data type of each column. Remove the Start Date and End Date columns, because they are no longer needed.
The result holds the opening balance of each country for every date in the forecast:

- Name the query Opening Cash Balances.
6. Join the balances to the payments and receipts, part 1
Section titled “6. Join the balances to the payments and receipts, part 1”The remaining work joins the payments and receipts to the opening balances and builds up a closing balance for each day. The closing balance needs running totals, so this step stops part way to create two running total functions.
- Create a new query that references Opening Cash Balances, and name it Projected Cash Balances (Confirmed & Estimated).
- Merge it with Projected Payments + Receipts, matching Dates to Date and Country to Country, with a left outer join:

- Expand only the columns that are needed, which are Type, Payment Type, Payment [LCY], Payment [GBP], Receipt Type, Receipt [LCY] and Receipt [GBP]:

- Replace the nulls in the amount columns with zeros, so that they can be added up:
= Table.ReplaceValue(#"Expanded Projected Payments1",null,0,Replacer.ReplaceValue,{"Bank [LCY]", "Bank [GBP]", "Payment [LCY]", "Payment [GBP]", "Receipt [LCY]", "Receipt [GBP]"})- Add two net receipts columns, one in local currency and one in GBP. Each one adds the payment to the receipt, which works because payments are held as negative numbers:
= Table.AddColumn(#"Replaced Value", "Net Receipts [LCY]", each [#"Payment [LCY]"]+[#"Receipt [LCY]"]) = Table.AddColumn(#"Added Net Receipts LCY", "Net Receipts [GBP]", each [#"Payment [GBP]"]+[#"Receipt [GBP]"])- Sort the rows by Country and then by Dates:
= Table.Sort(#"Added Net Receipts GBP",{{"Country", Order.Ascending}, {"Dates", Order.Ascending}})The next steps need the two running total functions, so build those before going further.
7. Create the running total functions
Section titled “7. Create the running total functions”Two running total functions are needed:
- fnRunningTotal returns the running total of whichever column is passed to it.
- fnRunningTotalexclEst does the same, but adds nothing for rows whose Type is Estimated.
The first function is the simpler of the two:

Its steps are these:
- It takes two parameters,
tblandsumcolumn. - It buffers the table with
Table.Buffer, which keeps the sort order in place. Because M evaluates lazily, the order can otherwise be lost. - It renames the column to be summed to Temp.
- It builds the running total with
List.Accumulate, which appends to a list the previous total plus the current value. - It adds the running total to the original table as a column called Running Total.
The second function follows the same pattern, but skips rows whose Type is Estimated:

It adds three steps to the first function:
- TableCombinedColumns combines the Type and Temp columns into one column called TypeTemp, in which each value is a record with a Type field and a Temp field. This step is needed because
List.Accumulatetakes a single list as its first argument, so it cannot read two columns at once. - ListofRecords turns the TypeTemp column into the list of records that
List.Accumulatetakes. - Cumulative Total works as before, except that the accumulator function adds zero whenever the current record’s Type field is Estimated.
The other steps are the same as in the first function.
8. Join the balances to the payments and receipts, part 2
Section titled “8. Join the balances to the payments and receipts, part 2”With the two functions in place, return to the Projected Cash Balances (Confirmed & Estimated) query. Each running total is calculated per country by grouping the table by Country and applying a function to each group.
- Group the table by Country with the following step, which calls the first function on the net receipts in local currency:
= Table.Group(#"Sorted Rows", {"Country"}, {{"AllData", (_) => fnRunningTotal(_, "Net Receipts [LCY]"), type table}})- Expand every column of AllData except Country, which the table already has from the grouping.
A new Running Total column now appears at the end, holding a running total of Net Receipts [LCY] for each country.
- Rename it to Cumulative Net Receipts [LCY].
- Group by Country again, this time for the net receipts in GBP:
= Table.Group(#"Renamed RT LCY", {"Country"}, {{"AllData", (_) => fnRunningTotal(_, "Net Receipts [GBP]"), type table}})- Expand every column except Country, as before.
- Rename the new Running Total column to Cumulative Net Receipts [GBP].
- Group by Country again, this time calling the second function, which leaves out Estimated rows:
= Table.Group(#"Renamed RT GBP", {"Country"}, {{"AllData", (_) => fnRunningTotalexclEst(_, "Net Receipts [LCY]"), type table}})- Expand every column except Country, and rename the new Running Total column to Cumulative Net Receipts [LCY] excl Est.
- Group by Country once more, calling the second function on the net receipts in GBP:
= Table.Group(#"Renamed RT LCY excl Est.", {"Country"}, {{"AllData", (_) => fnRunningTotalexclEst(_, "Net Receipts [GBP]"), type table}})- Expand every column except Country, and rename the new Running Total column to Cumulative Net Receipts [GBP] excl Est.
The last four columns of the table now look like this:

The closing balance for each day is the opening bank balance plus the cumulative net receipts to that day.
- Add four balance columns, one for each running total:
= Table.AddColumn(#"Renamed + RT GBP excl Est.", "Balance [LCY]", each [#"Bank [LCY]"]+[#"Cumulative Net Receipts [LCY]"])= Table.AddColumn(#"Added Balance LCY", "Balance [GBP]", each [#"Bank [GBP]"]+[#"Cumulative Net Receipts [GBP]"])= Table.AddColumn(#"Added Balance GBP", "Balance [LCY] excl Est.", each [#"Bank [LCY]"]+[#"Cumulative Net Receipts [LCY] excl Est."])= Table.AddColumn(#"Added Balance LCY excl Est.", "Balance [GBP] excl Est.", each [#"Bank [GBP]"]+[#"Cumulative Net Receipts [GBP] excl Est."])- Use Group By to group the table by Country once more, with the operation All Rows and the new column name All Data:

- Add a custom column called With Index that numbers the rows within each country’s table, starting from 1. The index is needed for any DAX measures built on this table, which the DAX page Finance - Daily Cashflows describes.

- Remove the All Data column, which leaves one row per country:

- Expand only the columns that the output needs. The bank balances, net receipts and cumulative net receipts columns are left out:

- Move the Record index column to the front, and set the final data type of each column.
When the query is loaded back to Excel, it gives the closing balance for each day, in local currency and in GBP, for every country that has a bank account, both with and without the estimated items:

Once the inputs have been updated, a single refresh rebuilds this output.
Some readers prefer charts to tables, so the final table can feed a Data Model and a report. The DAX page Finance - Daily Cashflows explains how to build them.
The finished query should look something like this:
let Source = #"Opening Cash Balances", #"Merged Queries" = Table.NestedJoin(Source,{"Dates", "Country"},#"Projected Payments + Receipts",{"Date", "Country"},"Projected Payments",JoinKind.LeftOuter), #"Expanded Projected Payments1" = Table.ExpandTableColumn(#"Merged Queries", "Projected Payments", {"Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]"}, {"Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]"}), #"Replaced Value" = Table.ReplaceValue(#"Expanded Projected Payments1",null,0,Replacer.ReplaceValue,{"Bank [LCY]", "Bank [GBP]", "Payment [LCY]", "Payment [GBP]", "Receipt [LCY]", "Receipt [GBP]"}), #"Added Net Receipts LCY" = Table.AddColumn(#"Replaced Value", "Net Receipts [LCY]", each [#"Payment [LCY]"]+[#"Receipt [LCY]"]), #"Added Net Receipts GBP" = Table.AddColumn(#"Added Net Receipts LCY", "Net Receipts [GBP]", each [#"Payment [GBP]"]+[#"Receipt [GBP]"]), #"Sorted Rows" = Table.Sort(#"Added Net Receipts GBP",{{"Country", Order.Ascending}, {"Dates", Order.Ascending}}), #"Grouped + RT Column LCY" = Table.Group(#"Sorted Rows", {"Country"}, {{"AllData", (_) => fnRunningTotal(_, "Net Receipts [LCY]"), type table}}), #"Expanded AllData" = Table.ExpandTableColumn(#"Grouped + RT Column LCY", "AllData", {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Running Total"}, {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Running Total"}), #"Renamed RT LCY" = Table.RenameColumns(#"Expanded AllData",{{"Running Total", "Cumulative Net Receipts [LCY]"}}), #"Grouped + RT Column GBP" = Table.Group(#"Renamed RT LCY", {"Country"}, {{"AllData", (_) => fnRunningTotal(_, "Net Receipts [GBP]"), type table}}), #"Expanded AllData1" = Table.ExpandTableColumn(#"Grouped + RT Column GBP", "AllData", {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Running Total"}, {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Running Total"}), #"Renamed RT GBP" = Table.RenameColumns(#"Expanded AllData1",{{"Running Total", "Cumulative Net Receipts [GBP]"}}), #"Grouped + RT LCY excl Est." = Table.Group(#"Renamed RT GBP", {"Country"}, {{"AllData", (_) => fnRunningTotalexclEst(_, "Net Receipts [LCY]"), type table}}), #"Expanded AllData2" = Table.ExpandTableColumn(#"Grouped + RT LCY excl Est.", "AllData", {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Cumulative Net Receipts [GBP]", "Running Total"}, {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Cumulative Net Receipts [GBP]", "Running Total"}), #"Renamed RT LCY excl Est." = Table.RenameColumns(#"Expanded AllData2",{{"Running Total", "Cumulative Net Receipts [LCY] excl Est."}}), #"Grouped + RT GBP excl Est." = Table.Group(#"Renamed RT LCY excl Est.", {"Country"}, {{"AllData", (_) => fnRunningTotalexclEst(_, "Net Receipts [GBP]"), type table}}), #"Expanded AllData3" = Table.ExpandTableColumn(#"Grouped + RT GBP excl Est.", "AllData", {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Cumulative Net Receipts [GBP]", "Cumulative Net Receipts [LCY] excl Est.", "Running Total"}, {"Bank [LCY]", "Bank [GBP]", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Net Receipts [LCY]", "Net Receipts [GBP]", "Cumulative Net Receipts [LCY]", "Cumulative Net Receipts [GBP]", "Cumulative Net Receipts [LCY] excl Est.", "Running Total"}), #"Renamed + RT GBP excl Est." = Table.RenameColumns(#"Expanded AllData3",{{"Running Total", "Cumulative Net Receipts [GBP] excl Est."}}), #"Added Balance LCY" = Table.AddColumn(#"Renamed + RT GBP excl Est.", "Balance [LCY]", each [#"Bank [LCY]"]+[#"Cumulative Net Receipts [LCY]"]), #"Added Balance GBP" = Table.AddColumn(#"Added Balance LCY", "Balance [GBP]", each [#"Bank [GBP]"]+[#"Cumulative Net Receipts [GBP]"]), #"Added Balance LCY excl Est." = Table.AddColumn(#"Added Balance GBP", "Balance [LCY] excl Est.", each [#"Bank [LCY]"]+[#"Cumulative Net Receipts [LCY] excl Est."]), #"Added Balance GBP excl Est." = Table.AddColumn(#"Added Balance LCY excl Est.", "Balance [GBP] excl Est.", each [#"Bank [GBP]"]+[#"Cumulative Net Receipts [GBP] excl Est."]), #"Grouped Rows" = Table.Group(#"Added Balance GBP excl Est.", {"Country"}, {{"All Data", each _, type table [Country=nullable text, Dates=date, Type=nullable text, Payment Type=nullable text, #"Payment [LCY]"=number, #"Payment [GBP]"=number, Receipt Type=nullable text, #"Receipt [LCY]"=number, #"Receipt [GBP]"=number, #"Balance [LCY]"=nullable number, #"Balance [GBP]"=nullable number, #"Balance [LCY] excl Est."=nullable number, #"Balance [GBP] excl Est."=nullable number]}}), #"Added Index" = Table.AddColumn(#"Grouped Rows", "With Index", each Table.AddIndexColumn([All Data], "Record", 1, 1)), #"Removed Columns" = Table.RemoveColumns(#"Added Index",{"All Data"}), #"Expanded Index" = Table.ExpandTableColumn(#"Removed Columns", "With Index", {"Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Balance [LCY]", "Balance [GBP]", "Balance [LCY] excl Est.", "Balance [GBP] excl Est.", "Record"}, {"Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Balance [LCY]", "Balance [GBP]", "Balance [LCY] excl Est.", "Balance [GBP] excl Est.", "Record"}), #"Reordered Columns" = Table.ReorderColumns(#"Expanded Index",{"Record", "Country", "Dates", "Type", "Payment Type", "Payment [LCY]", "Payment [GBP]", "Receipt Type", "Receipt [LCY]", "Receipt [GBP]", "Balance [LCY]", "Balance [GBP]", "Balance [LCY] excl Est.", "Balance [GBP] excl Est."}), #"Changed Type" = Table.TransformColumnTypes(#"Reordered Columns",{{"Record", Int64.Type}, {"Dates", type date}, {"Type", type text}, {"Payment Type", type text}, {"Payment [LCY]", type number}, {"Payment [GBP]", type number}, {"Receipt Type", type text}, {"Receipt [LCY]", type number}, {"Receipt [GBP]", type number}, {"Balance [LCY]", type number}, {"Balance [GBP]", type number}, {"Balance [LCY] excl Est.", type number}, {"Balance [GBP] excl Est.", type number}})in #"Changed Type"9. Query dependencies
Section titled “9. Query dependencies”The Query Dependencies view gives an overview of how the queries feed one another:

10. Possible extensions
Section titled “10. Possible extensions”The bank balances can already hold several currencies within one country, since Australia, for example, has one account in AUD and another in USD. The payment and receipt schedules, however, assume that every amount is entered in the country’s local currency. They could be extended to accept other currencies as well, but each amount would then need tagging with its currency, which takes extra effort to keep accurate.