# HistoryQueryExecutor

**URL:** <https://forum.inductiveautomation.com/t/historyqueryexecutor/43026>\
**Category:** Module Development\
**Created:** [February 4, 2021, 5:38pm UTC](https://forum.inductiveautomation.com/t/historyqueryexecutor/43026 "2021-02-04T17:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [February 4, 2021, 5:38pm UTC](https://forum.inductiveautomation.com/t/historyqueryexecutor/43026/1 "2021-02-04T17:38:53Z")

</div>

I am implementing a custom HistoryQueryExecutor.  
In my startReading function, I get the passed in aggregation mode with controller.getQueryParameters.getAggregationMode().getName()  
When called from a Vision screen, the aggmode is correct. When called from a Perspective PowerChart, it is always MinMax.
