Displaying targets weekly

Hi,

Is there an option for date: under a target to have the targets being weekly instead of all time or monthly (by using reported and now)?

Hi @magp18

Unfortunately, there is no way to change targets to not be monthly or all time.

That said, there’s an issue that might end up also implementing this feature: Support additional reporting periods: DHIS2 & Supervisor Targets · Issue #6797 · medic/cht-core · GitHub - I know this issue refers to DHIS2 integration, targets are how DHIS2 integration is achieved in the background. The most complete implementation of this issue will introduce configurable reporting periods for targets.

There was an attempt to schedule it earlier this year, but due to the increased complexity, a workaround for the requesting project was preferred.

1 Like

Many thanks for the prompt reply. Would love to see this feature implemented:)

In the documentation, it says that you can also use function(contact, report) for the date property.

Does this mean you could have a function that only selects documents for the current week?

If so, I can imagine it might actually display to the user correctly (ie weekly) but the underlying target document would be misleading since they are month-based.