# Calculate an increase/decrease %

**URL:** <https://community.amazonquick.com/t/calculate-an-increase-decrease/9095>\
**Category:** Q&A\
**Tags:** analysis, calculations, quick-sight\
**Created:** [January 16, 2023, 11:08am UTC](https://community.amazonquick.com/t/calculate-an-increase-decrease/9095 "2023-01-16T11:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreab](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@andreab](https://community.amazonquick.com/u/andreab)\
**Post date:** [January 16, 2023, 11:08am UTC](https://community.amazonquick.com/t/calculate-an-increase-decrease/9095/1 "2023-01-16T11:08:27Z")

</div>

Hi

I should create the increase / decrease % compared to the previous month  
at the moment i calculated the difference via the calculated field

difference(  
sum( xxx ),  
[{conversion\_date} ASC],  
-1)

and this graph appears

 ![%increase](https://d1wl4jav5dp96l.cloudfront.net/original/2X/7/7032ae7af09d5c86239096763a5c5d3300f50f75.png)

at this point I know that November has this figure: 6022  
while December: 6000  
so there is rightly a decrease of -22 as per the graph

now though I would have to divide the -22 by 6.022

(-22/6022)%

How do I set it to automatic for all months? what calculated field should i create/use

thanks  
Andrea

---

<div class="post-metadata">

**Author:** ![MKuhns01](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@MKuhns01](https://community.amazonquick.com/u/MKuhns01)\
**Post date:** [January 16, 2023, 3:48pm UTC](https://community.amazonquick.com/t/calculate-an-increase-decrease/9095/2 "2023-01-16T15:48:42Z")

</div>

You can use periodOverPeriodPercentDifference.

Like so:

periodOverPeriodPercentDifference(sum({xxx}), {Date}, MONTH, 1)

---

<div class="post-metadata">

**Author:** ![Kellie\_Burton](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/kellie_burton/32/2603_2.png) [@Kellie\_Burton](https://community.amazonquick.com/u/Kellie_Burton)\
**Post date:** [January 17, 2023, 4:44pm UTC](https://community.amazonquick.com/t/calculate-an-increase-decrease/9095/3 "2023-01-17T16:44:51Z")

</div>

Hi @andreab-  
Did the periodoverPeriodPercentDifference function get you the expected results? If not, please provide additional details.

Thanks,  
Kellie
