← Back to team overview

dhis2-users team mailing list archive

Re: Adding a time lag functionality to DHIS2


Many thanks Jim. I’m glad this is being looked at and seriously considered. I don’t use DHIS2 regularly, but whenever I do I find it frustrating not to be able to use more flexible expressions such as the ones listed at https://jira.dhis2.org/browse/DHIS2-4469 when defining indicators.


From: Jim Grace <jim@xxxxxxxxx>
Sent: 05 November 2018 19:30
To: TIMIMI, Hazim Bakir <timimih@xxxxxxx>
Cc: DHIS 2 Users list <dhis2-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Dhis2-users] Adding a time lag functionality to DHIS2

Hazim, you are not alone!

We are looking at exactly this kind of thing now, based on requests from many users. Just now I've commented on this at https://community.dhis2.org/t/expression-enhancements-to-space-shift-and-time-shift-data/774.

In the meantime you might consider the use of predictors that can be used to bring data forward in time and store it in new data elements, which can then be used in indicators alongside current data. This does require new data elements, and storing the same data under two different periods in the database. We hope to be able to avoid this in the future by allowing time-shifting in the indicators themselves, very much like what you saw in the Launchpad blueprint. But using predictors is something you could do today with existing DHIS2 functionality.

Jim Grace

On Mon, Nov 5, 2018 at 5:41 PM TIMIMI, Hazim Bakir <timimih@xxxxxxx<mailto:timimih@xxxxxxx>> wrote:
There are various things we would like to calculate using data from different time periods, such as % change between one period and the next, or to perform cohort analysis. I see this was raised in 2015 (see https://blueprints.launchpad.net/dhis2/+spec/indicator-time-lags).

Does anyone have any experience of doing this in DHIS2? I didn’t find anything on JIRA. We surely can’t be the only people wondering about this?

Any helpful hints would be most welcome!


Hazim Timimi
Data Manager, Tuberculosis Monitoring and Evaluation, World Health Organization, Geneva, Switzerland

Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

Jim Grace
Core developer, DHIS 2

Follow ups