ForceChallenges
ProblemsDailyNotes
Sign in
Problem list
Sign in to submit

Forecast Deals Across the Fiscal-Year Boundary

HardSOQL 50 ptsCreated Oct 17, 2026

With a January fiscal-year start and a report run in October 2026, the next fiscal quarter is Q1 FY2027. Return open Opportunities closing in that period with Id, Name, Amount, and CloseDate. Use fiscal-year and fiscal-quarter functions so the query follows the organization's fiscal calendar rather than relying on calendar-quarter dates.

Constraints

Filter open Opportunities to FISCAL_YEAR(CloseDate) = 2027 and FISCAL_QUARTER(CloseDate) = 1.

SOQLFiscal CalendarDate FunctionsOpportunity
CodeSOQL
Loading editor…
+3 hidden on submit
Open deals in fiscal Q1 2027

Seed data

Only the challenge's base org data.

Expected

8 row(s), any order

#IdNameAmountCloseDate
1006000000000001AAAFiscal Boundary Deal 110002027-02-15
2006000000000002AAAFiscal Boundary Deal 220002027-02-15
3006000000000003AAAFiscal Boundary Deal 330002027-02-15
4006000000000004AAAFiscal Boundary Deal 440002027-02-15
5006000000000005AAAFiscal Boundary Deal 550002027-02-15
6006000000000006AAAFiscal Boundary Deal 660002027-02-15
7006000000000007AAAFiscal Boundary Deal 770002027-02-15
8006000000000008AAAFiscal Boundary Deal 880002027-02-15