# Show a math operation on screen

**URL:** <https://community.glideapps.com/t/show-a-math-operation-on-screen/54294>\
**Category:** Ask for Help\
**Created:** [November 16, 2022, 3:23pm UTC](https://community.glideapps.com/t/show-a-math-operation-on-screen/54294 "2022-11-16T15:23:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_Alfieri](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/matteo_alfieri/32/37404_2.png) [@Matteo\_Alfieri](https://community.glideapps.com/u/Matteo_Alfieri)\
**Post date:** [November 16, 2022, 3:23pm UTC](https://community.glideapps.com/t/show-a-math-operation-on-screen/54294/1 "2022-11-16T15:23:37Z")

</div>

Hi im trying to make an operation based on data filtered on screen, check screenshot below.

I have 2 chart filtered by date on screen and i want simply make “total A - Total b= profit”

How i can do that?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/0/703919bb5a95dcc7da1766082d8a71c06e46beae.jpeg)

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [November 16, 2022, 4:35pm UTC](https://community.glideapps.com/t/show-a-math-operation-on-screen/54294/2 "2022-11-16T16:35:17Z")

</div>

Math operations happen in the data editor. Then display the result with a component in the display builder.

---

<div class="post-metadata">

**Author:** ![JuanM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/juanm/32/33666_2.png) [@JuanM](https://community.glideapps.com/u/JuanM)\
**Post date:** [November 16, 2022, 4:45pm UTC](https://community.glideapps.com/t/show-a-math-operation-on-screen/54294/3 "2022-11-16T16:45:07Z")

</div>

We need to be able to see the data structure but the following quickly occurs to me:

- create if column and condition when the date to be filtered matches the date of the data row show the amount

- create a rollup sum towards this column, so that it shows the result of the filtering
