# Is it possible to use brackets in a calculation?

**URL:** <https://forum.bubble.io/t/is-it-possible-to-use-brackets-in-a-calculation/1493>\
**Category:** Uncategorized\
**Created:** [February 7, 2016, 11:38am UTC](https://forum.bubble.io/t/is-it-possible-to-use-brackets-in-a-calculation/1493 "2016-02-07T11:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [February 7, 2016, 12:27pm UTC](https://forum.bubble.io/t/is-it-possible-to-use-brackets-in-a-calculation/1493/2 "2016-02-07T12:27:49Z")

</div>

🙂

> [@Edit more complex expressions](http://forum.bubble.io/t/edit-more-complex-expressions/1146):
>
> Any way to add parentheses? See screenshot, I have a star rating icon that needs to calculate the average of some ratings, so I need to add them and divide by 4. If I can’t use parentheses, can I edit the expression by hand to add a /4 to each item? If I try to do now for the first item in the addition, it removes the rest of the expression. Maybe I can do some trick by copy-pasting the parts of the expression from start to end to some other temporary controls to hold, but still it is tiring t…

> [@:filtered without intersect](http://forum.bubble.io/t/filtered-without-intersect/135):
>
> Hello, I wonder how I can do this. Let’s say I want to display in the same Repeating Group all the blue items from a BrandA AND all the red items from a BrandB. My data source is BrandA’s List of Items :filtered(color=blue) MERGED WITH BrandB’s List of Items :filtered(color=red). However the last “:filtered” filters the whole expression like if it was [BrandA’s List of Items:filtered(color=blue) MERGED WITH BrandB’s List of Items] :filtered(color=red). So the result gives only the red i…

> [@Order of operations](http://forum.bubble.io/t/order-of-operations/74):
>
> Does Bubble follow the standard mathematical order of operations. For example, will this divide input 2’s value by 5 and take that away from input ones value, or does it work left to right. If it’s the later, how to I adjust the operation when setting a variable (thing). Input 1’s value – input 2’s value / 5

---

_[View the full topic](https://forum.bubble.io/t/is-it-possible-to-use-brackets-in-a-calculation/1493)._
