IATI / D-Portal

http://d-portal.org/
Other
31 stars 23 forks source link

Year range filter #605

Closed PetyaKangalova closed 3 years ago

PetyaKangalova commented 3 years ago

@xriss and @notshi I am helping an organisation explain in their methodology the "Year Range filter".

For this example - year range min=2018 and max=2018, I get 844 Total. For active, ended, planned we have an answer here when date not specified.

Can you confirm which IATI elements the "Year Range" filter looks at?

My understanding is it looks at any activities that have started in or before 2018 (looking at actual or planned start date) and any activities that have ended in or after 2018 (looking at actual/planned end date). Then that is how you get the total number of activities in the example below. Is that correct?

notshi commented 3 years ago

Hi @PetyaKangalova

We look at actual/planned dates for activities that are 'alive' during the min and max year.

Therefore, the activities that started before 31 December 2018 and ended after 1 January 2018 to get an overlap of the ranges.

PetyaKangalova commented 3 years ago

@notshi thanks a lot for the speedy response!

notshi commented 3 years ago

FYI - the Glossary description has been updated to include this information.