Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1569

Use d2:countIfValue for assigning value to DE\TEA

$
0
0

Hi there,

I need an assistance for implementing following scenario:

  1. Briefly there are 2 stages and 3 DE:
    a) Stage B has a DE elements which are gender (dropdown list). The stage is repeatable
    b) Stage A has 2 DE , which represents sum of gender-male and gender-female, which should be able calculated based on the data in stage B and DE in the stage B. Basically I need to display in stage A sum of male and female has been registered in Stage B in the Stage A - DEs respectively.

I found a function: d2:count, d2:countIfValue. Can anyone how I can implement such logic based on these functions? Should I first assign value into programRulevariables or I can directly assign them to the DEs?

Will appreciate any help

Thank you
Regards,
Ulanbek

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1569

Trending Articles