Year-end stock with CLOSINGBALANCEYEAR, for calendar and fiscal years

Show stock on hand at the end of the calendar year or a July–June fiscal year with CLOSINGBALANCEYEAR and a year-end date.

You will learn to

  • Return the balance at the end of the year with CLOSINGBALANCEYEAR
  • Use a fiscal year end such as "6/30"
  • Compare each month with the year-end position

How it works

`CLOSINGBALANCEYEAR(expression, 'Date'[Date])` works like the month version, but jumps to the **last day of the year** that holds the last visible date. In any 2025 month, quarter or year row it returns the stock on 31 December 2025, so you can compare each month with where the year finished.

Many businesses close their books on a **fiscal year**. Pedal & Co.'s runs July to June, and is named for the year it ends in (July 2024 to June 2025 is FY2025). Give the balance function a third argument with the year-end date as text, month first: `"6/30"`. Now the year ends on 30 June.

When the last day of the year isn't in the date table (FY2026 would end in June 2026), the function uses the last date the table has.

Practice it hands-on with a real data model and a live report that updates as you type.

Year-End Value = CLOSINGBALANCEYEAR(SUM(Inventory[Stock Value]), 'Date'[Date])