# Pie Manipulate Slices

**URL:** <https://discuss.elastic.co/t/pie-manipulate-slices/235432>\
**Category:** Kibana\
**Created:** [June 3, 2020, 12:50am UTC](https://discuss.elastic.co/t/pie-manipulate-slices/235432 "2020-06-03T00:50:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Samokovlisky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_samokovlisky/32/44993_2.png) [@David\_Samokovlisky](https://discuss.elastic.co/u/David_Samokovlisky)\
**Post date:** [June 3, 2020, 12:50am UTC](https://discuss.elastic.co/t/pie-manipulate-slices/235432/1 "2020-06-03T00:50:19Z")

</div>

Hi!

Creating simple Pie Visualization, which shows the SUM of field X, and split slices by TERMS of field Y.  
(Field X is a number, and Field Y is a keyword).

My question is, can I manipulate existing Slices and make a new\existing slice to be the result of Subtraction of 2 other existing slices?

For example : I want to show/generate as a slice, the difference between the RED and PINK slices

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/7/6771b4c607f4028e1e9ba54a1868615d5da27b27.png)

I tried using the JSON input, but from what I found, it only support value aggregation, basically manipulating a specific field's value.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 3, 2020, 1:11pm UTC](https://discuss.elastic.co/t/pie-manipulate-slices/235432/2 "2020-06-03T13:11:07Z")

</div>

> can I manipulate existing Slices and make a new\existing slice to be the result of Subtraction of 2 other existing slices?

No, that is not possible. Please comment on [SUM of multiple fields · Issue #11427 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/11427) to describe your use case.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 1, 2020, 1:24pm UTC](https://discuss.elastic.co/t/pie-manipulate-slices/235432/3 "2020-07-01T13:24:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
