How to write select statement with where clause in the Fetch method (Ax 2009 reports)

Simply add ranges to the query at runtime. If you’re not familiar with it, look at existing reports in AOT.