I have been attempting to create a programme indicator for a tracker with registration that calculates the number of days since the incident (i.e. the current date - the incident date).
I have tried the following:
d2:daysBetween(V{incident_date},V{current_date})
I have also switched around the incident date and the current date as I thought I may have gotten this wrong. The indicator shows up in the programme under the indicators widget but the output is always “0”. Clearly I have done something wrong, but I just can’t seem to identify what it is.
Any help would be appreciated.
Kind regards,
Terence
···
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
I have been attempting to create a programme indicator for a tracker with registration that calculates the number of days since the incident (i.e. the current date - the incident date).
I have tried the following:
d2:daysBetween(V{incident_date},V{current_date})
I have also switched around the incident date and the current date as I thought I may have gotten this wrong. The indicator shows up in the programme under the indicators widget but the output is always “0”. Clearly I have done something wrong, but I just can’t seem to identify what it is.
Any help would be appreciated.
Kind regards,
Terence
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
I had created an attribute that was “date of incident” instead of using the default tickbox when creating the programme. Therefore, once I used the programme default of “date of incident” the calculation worked correctly.
I have been attempting to create a programme indicator for a tracker with registration that calculates the number of days since the incident (i.e. the current date - the incident date).
I have tried the following:
d2:daysBetween(V{incident_date},V{current_date})
I have also switched around the incident date and the current date as I thought I may have gotten this wrong. The indicator shows up in the programme under the indicators widget but the output is always “0”. Clearly I have done something wrong, but I just can’t seem to identify what it is.
Any help would be appreciated.
Kind regards,
Terence
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee