# Stream Analytics Builder logic

**URL:** <https://community.cumulocity.com/t/stream-analytics-builder-logic/5594>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [September 29, 2022, 2:41pm UTC](https://community.cumulocity.com/t/stream-analytics-builder-logic/5594 "2022-09-29T14:41:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [September 29, 2022, 2:41pm UTC](https://community.cumulocity.com/t/stream-analytics-builder-logic/5594/1 "2022-09-29T14:41:21Z")

</div>

#### What product/components do you use and which version/fix level are you on?

latest

#### Is your question related to the free trial, or to a production (customer) instance?

Production

#### What are you trying to achieve? Please describe it in detail.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

Stream Analytics Builder Logic:  
**Goal:** To count number events for the day using Stream Analytics Builder.  
**Model built to achieve the Goal.**

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/4/a/4a6d13cd194ad657fe008257def3e69db2f0ec14.png)  
Is this correct procedure to achieve mentioned Goal?

#### Have you installed all the latest fixes for the products and systems you are using?

yes

---

<div class="post-metadata">

**Author:** ![shruti.dogra](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@shruti.dogra](https://community.cumulocity.com/u/shruti.dogra)\
**Post date:** [September 29, 2022, 8:22pm UTC](https://community.cumulocity.com/t/stream-analytics-builder-logic/5594/2 "2022-09-29T20:22:12Z")

</div>

I can’t see the parameters of the Cron Timer block in the screenshot but assuming it’s resetting the counter block at the end of the day, if you connect the output to the ‘count’ output port of the Counter block it will give the total count of all the input values received during the day.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [March 28, 2023, 8:22pm UTC](https://community.cumulocity.com/t/stream-analytics-builder-logic/5594/3 "2023-03-28T20:22:32Z")

</div>

Closed on March 28, 2023, 8:22pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
