# Unrecognized signal name: "\_source" when using calculate in Vega-Lite

**URL:** <https://discuss.elastic.co/t/unrecognized-signal-name-source-when-using-calculate-in-vega-lite/353976>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [February 23, 2024, 10:48am UTC](https://discuss.elastic.co/t/unrecognized-signal-name-source-when-using-calculate-in-vega-lite/353976 "2024-02-23T10:48:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertomzc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robertomzc/32/132010_2.png) [@robertomzc](https://discuss.elastic.co/u/robertomzc)\
**Post date:** [February 23, 2024, 10:48am UTC](https://discuss.elastic.co/t/unrecognized-signal-name-source-when-using-calculate-in-vega-lite/353976/1 "2024-02-23T10:48:19Z")

</div>

Hi all,

I am trying to compute the sum of the absolute value of three fields in a dataset but I am getting an 'Unrecognized signal name: "\_source" ' error in the calculate clause. I tried substituting the '\_source' for 'datum' and the error dissapears but it then shows the warning ' Infinite extent for field "\_source.tas": [Infinity, -Infinity]'

Anyone would know why I am not able to compute this addition and plot it?

Thanks! Find the simplified Vega-Lite code below

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "url": {
      "index": "stats",
      "body": {
        "size": 10000,
        "_source": ["tas", "p_rate", "q_rate", "r_rate", "serial"]
      },
      "format": {"property": "hits.hits"}
    },
    "format": {"property": "hits.hits"}
  },
    "transform": [
    {
      "calculate": "_source.p_rate + _source.q_rate + _source.r_rate",
      "as": "sum_of_pqr"
    }]
  "layer": [
    {
    "mark": {"type": "point", "filled": true, size: 60},
    "encoding": {
      "x": {
        "field": "_source.tas",
        "type": "quantitative",
        "axis": {"title": "TAS (m/s)"}
      },
      "y": {
        "field": "_source.sum_pqr",
        "type": "quantitative",
        "axis": {"title": "Sum of absolute values of p, q and r (deg/s)"}
        "scale": {"domain": [-300, 300]},
      },  
    }
  },
  ],
  "title": "TAS vs p+q+r"
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 22, 2024, 10:49am UTC](https://discuss.elastic.co/t/unrecognized-signal-name-source-when-using-calculate-in-vega-lite/353976/2 "2024-03-22T10:49:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
