Hi All , we want to perform some mathematical calculation on data points values so in each data points value i want to do this calculation in ((1-value)*100) which we have received from time series API currently i am using below query

```
{
"start":"1d-ago",
"tags":[
{
"name":["/tag/SANDA_HPT_ROTOR.AMAY26DT951_XV02"],
"limit": 10,
"aggregations":[
{
"type":"interpolate",
"interval": "1h"
}
]
}
]
}
```

can any one please tell me how to perform calculation in data points values as above .is there any way to do in query or we need to do calculate or update the response with this calculation?

and also how we can check first data point in time series signal is there any direct query for the first data point?

Comment

**Answer** by Tom Turner
·
Jun 11, 2018 at 04:35 PM

There is no math built in to the API, good idea though. You'll have to loop across the results and do the math in code.

- Legal
- Cookies
- Forum Terms
- Contact Us
- Copyright © 2017 General Electric Company. All rights reserved.