I am sure you could accomplish this if you write the data yourself to Influx.
The better question is why are you trying to do this? Is there a specific reason you are trying to reduce the number of measurements/series?
Doing something like this may reduce your total series but I have to imagine it would have a huge performance impact on InfluxDB if you have a ton of data