Excel reports how to populate a single cell
-
Hy,
I know how to populate an excel report with a set of values relating to a variable,
but it is not clear to me how to add just a single value coming from a static mango datapoint used as parameter, for example I need to insert in cell AZ15 the value of datapoint "DegreesForPixel" having value 0.037 .
Thanks,
Antonio -
Hi Antonio,
If you create another Time Period, you can add the point and do a 'start value' rollup. The time range shouldn't matter, beyond being after the points' value. Make the rollup period the same size as the time range (so if you're doing the past 1 second as a time range, do a 1 second rollup) and use the
Start
rollup type.For a description of the rollups, see https://help.infiniteautomation.com/mango-rollups-and-statistics/
Which says:
Start - The value before or exactly at the period start time -
Thanks,
I've learned something more but maybe it is not enough,
my problem is that in Mango 2.8.4 is not available the start rollup,
and that I need to write in the daily excel report some datapoints where it is used "Log when change".
There'a a way to achieve this using Mango 2.8.4?
Maybe rollup accumulator could be the right solution but with the following configuration I've no data:Thanks,
Antonio -
Yeah. These are virtual points, yes? You can set their change type to "No change" and their logging type to "All data" then set their sample rate at twice a day or so and use the 'last' rollup, with the time period big enough to include at least one sample always. You may wish to adjust the purge period on the points too, but a slow sample rate at a year isn't a ton of samples (if you were using NoSQL that is... you may wish to set it to a week or whatever).