• 0
Archana

How to do arithmetic operations in Virtual datapoints

Question

Hi,

I have 3 datapoints added in my widget. I want the cumulative value of those 3 data points, so that I can display it as a single value on my graph Widget.

I am trying to do the addition as Datapoint1+Datapoint2+Datapoint3. But my graph representation is showing the error as "Invalid virtual datapoint expression".

Not sure what is the problem here. Could anyone please help me to add all the required datapoints and display it as a single value on graph.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I'm guessing something to do with the names of the DataPoints. Did you rename your Datapoints in the widget (some let you do that)? I've had something like this before where I renamed table columns from like "UptimeDays" to "Uptime (Days)" and the calculation options doesn't like that.

Share this post


Link to post
Share on other sites
  • 0

Below link contains the expressions which can be used in defining the Virtual Datapoints
https://www.logicmonitor.com/support/datasources/creating-managing-datasources/datapoint-expressions/

This site has the format how to use the arithmetic operators also. I found the expression for the addition is "x+y".

I assumed 'x' is the 1st datapoint and 'y' is the 2nd datapoint. So used my datapoints in the same way. But I have not got any results for the expression, only the error message saying "Invalid virtual datapoint expression".

Could anyone please help me on this?

Share this post


Link to post
Share on other sites
  • 0

That is correct. Can you provide more specific technical details? What DataSource/Widget are you attempting to edit exactly? What is the exact expression you are attempting to use? etc.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now