anyone know how to use datediff in aggregate builder. I try many time with datediff function in aggregate builder. when I click test, I got the alert “warning message”. do you know why?
I use datediff to calculate many day of date of birth with date of enrollment.
There are four kinds of datediff formulas supported :
1. Incident date diff : Get the number of days between a data element and incident-date of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2.3] , dateOfIncident) > 1
2. Enrollment date diff : Get the number of days between a data element and enrollment-date of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , enrollmentDate) > 1**
3. Report date diff : Get the number of days between a data element and a report-date of an event of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , executionDate) > 1**
4. Data element date diff : Get the number of days between a data element and a report-date of an event of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , [DE:1.2.4]) > 1**
The formulas to calculate the number of days related to DATE attributes haven’t supported yet.
anyone know how to use datediff in aggregate builder. I try many time with datediff function in aggregate builder. when I click test, I got the alert “warning message”. do you know why?
I use datediff to calculate many day of date of birth with date of enrollment.
anyone know how to use datediff in aggregate builder. I try many time with datediff function in aggregate builder. when I click test, I got the alert “warning message”. do you know why?
I use datediff to calculate many day of date of birth with date of enrollment.
but I would to confirm with you that the attribute with date type is not support for calculate in aggregate builder?
if SO, when they will plan implement it?
From: Tran Chau
Sent: Wednesday, July 23, 2014 10:57 Morning To: channara rin Cc: DHIS 2 Users list
Hi Channara,
There are four kinds of datediff formulas supported :
1. Incident date diff : Get the number of days between a data element and incident-date of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2.3] , dateOfIncident) > 1
2. Enrollment date diff : Get the number of days between a data element and enrollment-date of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , enrollmentDate) > 1**
3. Report date diff : Get the number of days between a data element and a report-date of an event of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , executionDate) > 1**
4. Data element date diff : Get the number of days between a data element and a report-date of an event of tracked entity instance ( TEI ). Below is an example for this case :
DATEDIFF([DE:1.2**.3****] , [DE:1.2.4]) > 1**
The formulas to calculate the number of days related to DATE attributes haven’t supported yet.
anyone know how to use datediff in aggregate builder. I try many time with datediff function in aggregate builder. when I click test, I got the alert “warning message”. do you know why?
I use datediff to calculate many day of date of birth with date of enrollment.