Program indicator calculation

Dear community greetings,

I would like to ask a question regarding program indicator.

How to calculate two dates to get number of months?
For example

Start date: 1-Jan-2021
End date: 30-Nov-2021
Result would be: 11 Months

Is it possible to get the result as above in DHIS2 program indicator?

Please comment

Regards
Jan Agha Stanikzai

Hello @janagha

You can use d2:monthsBetween() function

Like d2:monthsBetween(date1 , date2)

Found more information here Program indicators supported - DHIS2 Documentation

Regards

1 Like