# Adding alias (or grouping) breaks graph?

**URL:** <https://community.grafana.com/t/adding-alias-or-grouping-breaks-graph/55701>\
**Category:** InfluxDB\
**Created:** [November 2, 2021, 3:33am UTC](https://community.grafana.com/t/adding-alias-or-grouping-breaks-graph/55701 "2021-11-02T03:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robotarmy](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@robotarmy](https://community.grafana.com/u/robotarmy)\
**Post date:** [November 2, 2021, 3:33am UTC](https://community.grafana.com/t/adding-alias-or-grouping-breaks-graph/55701/1 "2021-11-02T03:33:07Z")

</div>

Hi,

I’m having trouble with a simple plot in Grafana.

I’ve got an influxdb that looks like this:

```auto
time calibratedHumidity sensorname temperature voltage
---- ------------------ ---------- ----------- -------
1635724024000000000 48.19 A4:C1:38:D2:DF:B1 20.41 2.949
1635724028000000000 48.19 A4:C1:38:D2:DF:B1 20.41 2.949
1635821657000000000 44 A4:C1:38:43:7D:59 22 2.915
1635821658000000000 46.92 A4:C1:38:D2:DF:B1 21.95 2.898
1635821664000000000 44 A4:C1:38:43:7D:59 21.9 2.915
1635821665000000000 46.98 A4:C1:38:D2:DF:B1 21.94 2.894
1635821674000000000 44 A4:C1:38:43:7D:59 21.9 2.914

```

And I’m trying to make a plot with a meaningful legend, showing the colour that indicates the temperature and humidity for the two sensors (…DF:B1 and …7D:59)

At the moment, it comes up as shown here “temp.mean” and “temp.mean” for both temperature and humidity.

 ![Screenshot 2021-11-01 at 20.30.16](https://us1.discourse-cdn.com/grafana/original/3X/a/a/aaec4460f5ee58785c14aa9ec762cf3d5edf7fac.png)

If I add any alias to the query, the line of data for that query disappears.

If I try to ‘group by’ `tag(sensorname)`, the line of data for that query disappears.

Is this expected behaviour?

Thanks,  
R

---

<div class="post-metadata">

**Author:** ![robotarmy](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@robotarmy](https://community.grafana.com/u/robotarmy)\
**Post date:** [November 2, 2021, 8:46pm UTC](https://community.grafana.com/t/adding-alias-or-grouping-breaks-graph/55701/2 "2021-11-02T20:46:31Z")

</div>

For some reason, the behaviour isn’t showing up today. See screenshot below:

 ![Screenshot 2021-11-02 at 13.46.08](https://us1.discourse-cdn.com/grafana/original/3X/a/4/a4cd2ec96ffceb84071cad508eb5eff3d143a776.png)
