It depends on the plan, from a week on the free tier to two years on the largest. The dashboard, the filters and the export all read the same window, so a date range that reaches past it comes back empty for those days rather than partial.
If you need to keep more than your plan holds, export on a schedule. The figure per plan is in Retention limits.