I have some sensor data stored in influx that I would like to aggregate after filtering for outliers where the sensor malfunctioned. The data is tagged with a session ID and