Is there a way to create an indicator that counts events that meet criteria from two different programs? i.e., number of participants enrolled in Program A and had an event in Program B.
@WaluQ yes, you can create such indicator. But it must be INDICATOR, not a ProgramIndicator.
As and example I have created an indicator on DHIS 2 Demo - Sierra Leone, but it can be deleted. Therefore I have attached the indicator, so you can import into DHIS and look at:
{ "indicators": [
{
"name": "Sum_of _DE_from2_programs",
"publicAccess": "rw------",
"shortName": "2p-sum",
"dimensionItemType": "INDICATOR",
"annualized": false,
"indicatorType": {
"id": "JkWynlWMjJR"
},
"numerator": "I{nFICjJluo74}+I{zyTL3AMIkf2}+I{kL9jc0p6VlJ}",
"numeratorDescription": "Test-data ",
"denominator": "1",
"denominatorDescription": "1",
"dataSets": [],
"dimensionItem": "WNpK4vL9IV6",
"id": "WNpK4vL9IV6",
}
]}
Thank you @Ulanbek. So ideally, what I need to achieve is to only count the events in the second program if they are present in the first program. I see the indicator you created adds events from 3 data elements from different programs. In my use case, this will increase the results I need to get back. Perhaps I need to recreate the programs and merge them into one.
Another way is to create a relationship between the programs and count them. But I believe if you want to count if the event from program A is subset of program B, you should develop custom report
Regards
Could you share more details on developing custom reports?
follow the link
select report Immunization: Overview (HTML-based with SVG) and press right button of the mouse. You will get
select Edit, and ten press DOWNLOAD button. You will get an example of how to build custom report. Basically custom report is HTML page built by you with some JS inside. It can provide you flexibility and build any report you wish.
Thank you very much. I think this will save the need. I’ll update once I work on this. Thank you once again!