New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query for time period with reporting year start day #141
Comments
Hi Jens. There are 56 occurrences of reporting year in that document. Could you please point me to the one that indicates how it's used in a SOAP query? I could not find it. And, I must confess I also don't understand the question :(. Let's take an organization whose financial year starts on the 1st of April of every year. The reporting year start day would therefore be So, let's imagine the frequency is annual ( In the REST service, the value for the startPeriod and endPeriod parameters must be a valid period. So, you could have something like But, I'm not sure what you mean with using "--07-01" in the query, unless you want to ask for all the data reported for a reporting year that starts on a 1st of July? If that's the case, then this feature is currently not supported by the API, AFAIK. |
Hi @sosna, No problem, let me try to be more specific: The Technical Notes (page 21) say the following: 844 4.2.14 Time in Query Messages I have marked the relevant sentence part in bold+italic. Concretely, the SDMXQuery.xsd foresees the following xml attribute to specify the "reporting year start day" for a time period filter in the SOAP request: GenericDataQuery - DataWhere - TimeDimensionValue - reportingYearStartDay The Technical Notes (page 23) give then an example for the response content the server should return in case the "reporting year start day" was provided for a time period filter in the request: 893 Gregorian Period Note: Here above I have corrected typos in these Technical Notes by marking them in bold+italic. Coming back to REST, here we can currently only provide a startPeriod and an endPeriod, but no parameter for the corresponding "reporting year start day" value, e.g. "--07-01". What a requester could indeed already do is to convert himself the startPeriod and endPeriod parameters to appropriate calendar days by applying the "reporting year start day" value (as the Technical Notes also explain). If the server could do this instead, this would ease the life of the requester. Let me know if more clarification is required. |
Thanks, @dosse, it's all clear now :). So, indeed, such a parameter is missing at the moment, and I guess we will be able to tackle that only after the SDMX 3.0 release :(. |
The technical notes, page 21, describe a feature to query for data according to a start/end time period with reporting year start day = "--07-01". This was probably made for soap. How can the reporting year start day, which is to be applied to the query start/end time period, be specified in the REST query?
The text was updated successfully, but these errors were encountered: