# Data element from the newest event in the current program not working

**URL:** <https://community.dhis2.org/t/data-element-from-the-newest-event-in-the-current-program-not-working/48801>\
**Category:** Support - Assistance technique\
**Tags:** tracker, events\
**Created:** [28 July 2022 02:25 UTC](https://community.dhis2.org/t/data-element-from-the-newest-event-in-the-current-program-not-working/48801 "2022-07-28T02:25:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drlappies](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/73ab20/32.png) [@drlappies](https://community.dhis2.org/u/drlappies)\
**Post date:** [28 July 2022 02:25 UTC](https://community.dhis2.org/t/data-element-from-the-newest-event-in-the-current-program-not-working/48801/1 "2022-07-28T02:25:02Z")

</div>

I’ve implemented an event program, where data needs to be captured for a specific org unit on a daily basis, and within each event, a carry over value from the previous entry needs to be added, which we try and do with program rules, but doesn’t seem to be working correctly as it always returns a zero value, even though there is data on it, any possible suggestions? We are using 2.37.6

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [30 July 2022 13:52 UTC](https://community.dhis2.org/t/data-element-from-the-newest-event-in-the-current-program-not-working/48801/2 "2022-07-30T13:52:19Z")

</div>

Welcome back to the community @drlappies! 🙂

> [@drlappies](#):
>
> try and do with program rules, but doesn’t seem to be working correctly as it always returns a zero value,

Please post the steps to reproduce. Thanks!
