# How do I calculated the number of days in a row the same value occurs? Daily streak?

**URL:** <https://community.amazonquick.com/t/how-do-i-calculated-the-number-of-days-in-a-row-the-same-value-occurs-daily-streak/44359>\
**Category:** Q&A\
**Tags:** api, developer, quick-sight\
**Created:** [April 1, 2025, 2:54pm UTC](https://community.amazonquick.com/t/how-do-i-calculated-the-number-of-days-in-a-row-the-same-value-occurs-daily-streak/44359 "2025-04-01T14:54:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [April 2, 2025, 11:35am UTC](https://community.amazonquick.com/t/how-do-i-calculated-the-number-of-days-in-a-row-the-same-value-occurs-daily-streak/44359/2 "2025-04-02T11:35:04Z")

</div>

@hcorbett ,

Could you add an Arena example for the above ( [QuickSight Arena -- An embedded instance of QuickSight within the QuickSight Community](https://community.amazonquick.com/t/quicksight-arena-an-embedded-instance-of-quicksight-within-the-quicksight-community/21437) )

> The first instance of Critical is 1. Then the Status is Warning (Streak = 1), but then it goes back to Critical and instead of starting over at 1 because the streak was broken, the value is 2.

I am not sure I completely understand the above.

---

_[View the full topic](https://community.amazonquick.com/t/how-do-i-calculated-the-number-of-days-in-a-row-the-same-value-occurs-daily-streak/44359)._
