# Getting 2 data points when given max data point = 1 in query options

**URL:** <https://community.grafana.com/t/getting-2-data-points-when-given-max-data-point-1-in-query-options/61558>\
**Category:** Elasticsearch\
**Tags:** elasticsearch\
**Created:** [February 28, 2022, 1:53pm UTC](https://community.grafana.com/t/getting-2-data-points-when-given-max-data-point-1-in-query-options/61558 "2022-02-28T13:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahaashish42](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sahaashish42/32/21710_2.png) [@sahaashish42](https://community.grafana.com/u/sahaashish42)\
**Post date:** [February 28, 2022, 1:53pm UTC](https://community.grafana.com/t/getting-2-data-points-when-given-max-data-point-1-in-query-options/61558/1 "2022-02-28T13:53:51Z")

</div>

I am trying to calculate percentage for last 30 day errors count but getting 2 data points instead of just 1 data point when given max data point =1 in query options.

max data points =1  
relative time = 30d

I am using OpenSearch as data source and trying to calculate error budget percentage.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/4/b47e70618afa0cfd1554deacd5f65b64d5f3f9d2.png)
