# How to execute dynamic queries with visualisations

**URL:** <https://discuss.elastic.co/t/how-to-execute-dynamic-queries-with-visualisations/281640>\
**Category:** Kibana\
**Created:** [August 17, 2021, 8:10am UTC](https://discuss.elastic.co/t/how-to-execute-dynamic-queries-with-visualisations/281640 "2021-08-17T08:10:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [August 19, 2021, 8:28am UTC](https://discuss.elastic.co/t/how-to-execute-dynamic-queries-with-visualisations/281640/4 "2021-08-19T08:28:34Z")

</div>

If you had all the information per document you could use scripted fields to do this calculation but as it is right now I don't think that this is possible.  
I think that there is another discuss post about it [Calculating one field from different documents](https://discuss.elastic.co/t/calculating-one-field-from-different-documents/119185)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-execute-dynamic-queries-with-visualisations/281640)._
