Sum of values displayed in a trend - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Sum of values displayed in a trend (/showthread.php?tid=5539) |
Sum of values displayed in a trend - iiribarren - 30.07.2024 Good morning. From a trend on a visualization screen, which shows the daily energy consumption, I would like to get the sum of the displayed values, depending on the selected day. Would this be possible in any way? Could I at least get the selected date and save it to an object? Thanks for your help. RE: Sum of values displayed in a trend - Daniel - 30.07.2024 This is what is possible https://kb.logicmachine.net/libraries/trends/ You can't do it directly from a trend view but you could make some config via objects. RE: Sum of values displayed in a trend - iiribarren - 30.07.2024 (30.07.2024, 11:02)Daniel Wrote: This is what is possible I would need to know the date selected in the graph, in order to make the filter correctly. RE: Sum of values displayed in a trend - Daniel - 30.07.2024 The server has no idea of what selection you make in trends. this is just happening in your browser. If you switch to monthly view then you will see daily data. If you want something write to object you must use script, ether calculate directly from object or use trend API and calculate from there. |