Good day all. I’ve got a time series database for my economic data, and it generally works pretty well except I have one issue around data frequency in my queries.
In short, different indicators have different release frequencies, such as daily, monthly, quarterly, annual etc.
I have two specific issues I’d like to address: 1. When extracting data, if you enter the wrong data frequency in the form/query, it finds no data, and thus, I’d like to tweak the form/query to only show a list of available frequencies for the data once the indicator has been selected, not all the frequencies of all the data (from a frequency table). How would I go about this?
2. Where I’m trying to extract data on a less frequent basis than it is released (I.e. I want annual data and the data I have is monthly), I would like the query to either average, select the end of period, or sum (the correct one of these options will depend on the data, and the correct option will be noted in the database) the more frequent data to give the less frequent values. For example, if I have monthly diamond production data and I want to extract annual data, I would like the query to sum all monthly data for the year and show that value. How could this be done?
Thanks in advance!
In short, different indicators have different release frequencies, such as daily, monthly, quarterly, annual etc.
I have two specific issues I’d like to address: 1. When extracting data, if you enter the wrong data frequency in the form/query, it finds no data, and thus, I’d like to tweak the form/query to only show a list of available frequencies for the data once the indicator has been selected, not all the frequencies of all the data (from a frequency table). How would I go about this?
2. Where I’m trying to extract data on a less frequent basis than it is released (I.e. I want annual data and the data I have is monthly), I would like the query to either average, select the end of period, or sum (the correct one of these options will depend on the data, and the correct option will be noted in the database) the more frequent data to give the less frequent values. For example, if I have monthly diamond production data and I want to extract annual data, I would like the query to sum all monthly data for the year and show that value. How could this be done?
Thanks in advance!