GoshPosh / grafana-meta-queries

Grafana plugin for calculating time period metrics like week over week, month over month and year over year etc.
Apache License 2.0
285 stars 71 forks source link

MetaQueries not displaying data with "--Mixed--" datasource selected #115

Closed adrianchase closed 3 years ago

adrianchase commented 3 years ago

Good morning,

I am trying to make a simple aritmetic operation with two variables in MetaQueries (A['variable 1']/B['variable 2']). Well the issue I think it comes because each of the variables comes from a different datasource - Therefore the data source selected is "--Mixed--":

image

Here it is the definition of both variables:

Query A - ALIAS BY "variable 1" Description: absolute counter for the parts produced over the lifecycle of the machine // with the transformation "difference" I extract relative values per day. Datasource 1: "ConditionMonitoring" image

Query B - ALIAS BY "variable 2" Description: absolute counter for the energy consumption (electricity) over the lifecycle of the machine // with the transformation "difference" I extract relative values per day. Datasource 2: "EnergyConsumption" image

MetaQueries query: image

Note: each variable is displayed in the right way however I receive nothing when I hide all variables except the calculated one:

image

image

image

Furthermore, I have tried to make a simpler calculation (A['variable 1']*2) with the same result.

Has anyone faced this issue? Is there anything wrong in the definition?

Thanks a lot in advance!

Best Regards Adrián

Gauravshah commented 3 years ago

duplicate of https://github.com/GoshPosh/grafana-meta-queries/issues/114