# How to build a calculation to calculate =(Column A+Column B)/Column B

**URL:** <https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219>\
**Category:** Q&A\
**Tags:** calculations, Business-Intelligence-Engineer, quick-sight\
**Created:** [March 27, 2025, 3:24am UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219 "2025-03-27T03:24:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![llan](https://avatars.discourse-cdn.com/v4/letter/l/9e8a1a/32.png) [@llan](https://community.amazonquick.com/u/llan)\
**Post date:** [March 27, 2025, 3:24am UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/1 "2025-03-27T03:24:12Z")

</div>

Hi, I just want to add a calculated field to get the outcome of an excel formulation: = (Column A + Column B)/Column B. Can you please help?

I am a new user of quicksight and have no coding background. I am struggled to build calculated field. Is there any site that captures how to convert excel formulation to quicksight calculation? I have tried to use function selection and learn more and Amazon Q Build Calculation function. Nothing works for even very simple excel calculation. Would really appreciate an excel formula converter to quicksight calculation.

---

<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 27, 2025, 2:55pm UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/2 "2025-03-27T14:55:08Z")

</div>

Hi @llan,  
When building calculated fields in Quick Sight, it’s more about utilizing field names instead of columns and making sure to utilize the correct function. Here’s a great article that lists out the Quick Sight functions by category:

> **[Functions by category - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/functions-by-category.html)**
>
> View Amazon QuickSight functions listed by category.

In regards to the calculation you’re trying to perform, I would suggest utilizing a [sum](https://docs.aws.amazon.com/quicksight/latest/user/sum-function.html) or [sumOver](https://docs.aws.amazon.com/quicksight/latest/user/sumOver-function.html) function depending on how you’d like to aggregate.

Additionally, here’s one more article that really helped me understand different use cases on using level aware calculations:

> [@Level-Aware Calculations: Tips and Best Practices](https://community.amazonquick.com/t/level-aware-calculations-tips-and-best-practices/17936):
>
> Level-Aware Calculations (LAC) are powerful functions that allow us to perform calculations at a granularity level which is different from the granularity of our datasets and/or visuals. The sample dataset referenced by this article is a dataset of product orders placed by customers. Each order can contain multiple products and each product in an order has a unique Line Item ID. Each row of our dataset represents one line item but we want to pe…

Let us know if you have any additional questions

---

<div class="post-metadata">

**Author:** ![llan](https://avatars.discourse-cdn.com/v4/letter/l/9e8a1a/32.png) [@llan](https://community.amazonquick.com/u/llan)\
**Post date:** [March 27, 2025, 6:15pm UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/3 "2025-03-27T18:15:15Z")

</div>

Thank you. Tried SUM/SUMOVER, it does not work for me. I am sure I may have missed something.

Could you please provide exact calculation based on the image below? So I can use it to create column D in Quicksight as a calculated field. Thanks.

 ![Screenshot 2025-03-27 141325](https://d1wl4jav5dp96l.cloudfront.net/original/3X/4/b/4bbf09fd0fb7e86cac3b312a54099773381bdde3.jpeg)

---

<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 31, 2025, 8:33pm UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/4 "2025-03-31T20:33:25Z")

</div>

Hi @llan,  
What is the name of your field that has the ‘sales person’ values? You’ll want to make sure and aggregate your calculations by that field. It may look something like:

> (sum({FY 25 Revenue}, [{Sales Person Field}])-sum({FY24 Revenue}, [{Sales Person Field}]))/sum({FY24 Revenue}, [{Sales Person Field}])

Then you can change the ‘show as’ section to ‘Percent’.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/1/f/1fd65af982e7b8a2a387b6927c1eee227cba8aa8.png)

Let me know if you have any additional questions

---

<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:** [April 14, 2025, 4:04pm UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/5 "2025-04-14T16:04:10Z")

</div>

Hi @llan,  
Following up here as it’s been awhile since we last heard from you; did you have any additional questions regarding your initial post?

If we do not hear back within the next 3 business days, I’ll close out this topic.

Thank you!

---

<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:** [April 18, 2025, 1:18am UTC](https://community.amazonquick.com/t/how-to-build-a-calculation-to-calculate-column-a-column-b-column-b/44219/6 "2025-04-18T01:18:06Z")

</div>

Hi @llan,  
Since we have not heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.

Thank you!
