# Previous Year Calculation Returns Zero After Applying Filters

**URL:** <https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51826>\
**Category:** Q&A\
**Tags:** analysis, filters, calculations, Business-Intelligence-Engineer\
**Created:** [March 12, 2026, 1:55pm UTC](https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51826 "2026-03-12T13:55:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lydianec.pereira](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lydianec.pereira](https://community.amazonquick.com/u/lydianec.pereira)\
**Post date:** [March 12, 2026, 1:55pm UTC](https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51826/1 "2026-03-12T13:55:49Z")

</div>

Hello,  
I have a table that contains the fields: year (YTD), current value, and previous value.  
For the “previous value” column, I need it to always return the value from the prior year. However, when I apply filters, the results change based on the selected year, and the column that should display the previous fiscal values ends up returning zero.  
I need the previous fiscal value to remain consistent and not be affected by the filters applied to the current year.

 ![Captura de tela 2026-03-10 103343](https://d1wl4jav5dp96l.cloudfront.net/original/3X/1/7/1797cd12c9cf12c013e43d081c8f407cff995b6d.png)

 ![Captura de tela 2026-03-10 103323](https://d1wl4jav5dp96l.cloudfront.net/original/3X/4/1/41dc2c130c460746541b0df9fa0cdc11888481f9.png)

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [March 12, 2026, 1:57pm UTC](https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51826/2 "2026-03-12T13:57:29Z")

</div>

Since this is a duplicate post, archiving so that there’s no confusion in responses. Refer to the following thread for further communication around this topic:

> [@Previous Year Calculation Returns Zero After Applying Filters](https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51824):
>
> Hello, I have a table that contains the fields: year (YTD), current value, and previous value. For the “previous value” column, I need it to always return the value from the prior year. However, when I apply filters, the results change based on the selected year, and the column that should display the previous fiscal values ends up returning zero. I need the previous fiscal value to remain consistent and not be affected by the filters applied to the current year.

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [March 12, 2026, 1:58pm UTC](https://community.amazonquick.com/t/previous-year-calculation-returns-zero-after-applying-filters/51826/3 "2026-03-12T13:58:33Z")

</div>

Archived on March 12, 2026, 1:58pm UTC


