Dear All
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
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday
Nevermind, I managed to figure it out!
···
On Fri, Aug 25, 2017 at 3:08 PM, Terence Scott terence.scott@rabiesalliance.org wrote:
Dear All
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
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday
Dear All
To share how I resolved the issue:
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.
Kind regards,
Terence
···
On Fri, Aug 25, 2017 at 4:54 PM, Terence Scott terence.scott@rabiesalliance.org wrote:
Nevermind, I managed to figure it out!
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday
On Fri, Aug 25, 2017 at 3:08 PM, Terence Scott terence.scott@rabiesalliance.org wrote:
Dear All
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
terence.scott@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
World Rabies Day is onSeptember 28th 2017

Take action: you can register your World Rabies Day event, nominate someone for the WRD Awards and find out more here
Don’t forget to tweet us using #worldrabiesday