# Downsample into same measure?

**URL:** <https://community.influxdata.com/t/downsample-into-same-measure/1950>\
**Category:** InfluxQL\
**Created:** [August 9, 2017, 11:37am UTC](https://community.influxdata.com/t/downsample-into-same-measure/1950 "2017-08-09T11:37:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![alberto\_gcs](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/alberto_gcs/32/9604_2.png) [@alberto\_gcs](https://community.influxdata.com/u/alberto_gcs)\
**Post date:** [March 3, 2022, 10:21am UTC](https://community.influxdata.com/t/downsample-into-same-measure/1950/5 "2022-03-03T10:21:26Z")

</div>

> [@Down sample data in same measurement and delete old data](https://community.influxdata.com/t/down-sample-data-in-same-measurement-and-delete-old-data/7297/2):
>
> I think this presentation may help you: [DOWNSAMPLING DATA](https://www.slideshare.net/influxdata/downsampling-data) I have only done with with continuous queries in InfluxDB directly. Influx has a regex syntax from Go and other shorthand to the same downsampling to all measurements in a retention policy. So in the continuous query it’s something like CREATE CONTINUOUS QUERY "cq\_5min\_metrics" ON t128 BEGIN SELECT LAST("value") as value INTO LongerData.:MEASUREMENT \<- add into "LongerDestination" retention policy with same measurement names …

---

_[View the full topic](https://community.influxdata.com/t/downsample-into-same-measure/1950)._
