It all depends on how your system is configured, the system administrator can choose how long to keep the raw data, but there are limitations on the database size. You need to look in Configuration - Historical Stats to find out. Typically, interval data is kept for a few days,daily data a few weeks, and monthly data a few months.