# Series is shown twice in the legend

**URL:** <https://community.grafana.com/t/series-is-shown-twice-in-the-legend/12997>\
**Category:** Graphite\
**Created:** [December 19, 2018, 5:06pm UTC](https://community.grafana.com/t/series-is-shown-twice-in-the-legend/12997 "2018-12-19T17:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andfinally](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/andfinally/32/5609_2.png) [@andfinally](https://community.grafana.com/u/andfinally)\
**Post date:** [December 19, 2018, 5:06pm UTC](https://community.grafana.com/t/series-is-shown-twice-in-the-legend/12997/1 "2018-12-19T17:06:34Z")

</div>

Hey Grafana folks! I’m trying to show the totals of two series, so my two metrics look like this:

```
alias(summarize(exclude(stats.counts.com.xxx.imports.zzz.parser.parse.*, 'regex'), '10m', 'sum', false), 'Non regex parses')

alias(summarize(stats.counts.com.xxx.imports.zzz.parser.error.*, '10m', 'sum', false), 'Parse errors')

```

The chart shows each series twice in the chart.

 ![grafana-chart](https://us1.discourse-cdn.com/grafana/original/2X/3/3b0d1f2ad658e942f1c750eb72ac8bd4d199ca7b.png)

Am I making some basic error here? I just want to show the total of `stats.counts.com.xxx.imports.zzz.parser.parse.*`, excluding `regex` items, and the total of `stats.counts.com.xxx.imports.zzz.parser.error.*`.

I’ve summarized the series in 10 minute groupings. Here’s my query (with data series cut out to keep it short):

```
{
  "xhrStatus": "complete",
  "request": {
    "method": "POST",
    "url": "api/data/render",
    "data": "target=alias(summarize(exclude(stats.counts.com.xxx.imports.zzz.parser.parse.*%2C%20'regex')%2C%20'10min'%2C%20'sum'%2C%20false)%2C%20'Non%20regex%20parses')&target=alias(summarize(stats.counts.com.xxx.imports.zzz.parser.error.*%2C%20'10min'%2C%20'sum'%2C%20false)%2C%20'Parse%20errors')&from=-6h&until=now&format=json&maxDataPoints=764"
  },
  "response": [
    {
      "target": "Non regex parses",
      "datapoints": [
        // ...
      ]
    },
    {
      "target": "Non regex parses",
      "datapoints": [
        // ..
      ]
    },
    {
      "target": "Parse errors",
      "datapoints": [
        // ..
      ]
    },
    {
      "target": "Parse errors",
      "datapoints": [
       // ..
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![andfinally](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/andfinally/32/5609_2.png) [@andfinally](https://community.grafana.com/u/andfinally)\
**Post date:** [December 20, 2018, 8:58am UTC](https://community.grafana.com/t/series-is-shown-twice-in-the-legend/12997/2 "2018-12-20T08:58:56Z")

</div>

I’ve figured it out. If you have `*` in a series, Grafana shows each metric encompassed by the wildcard separately. So if `*` gathers three different metrics, they’ll be shown as separate items in the legend. You need to add the data for all the metrics together using the `sumSeries` function.
