Noob not getting the syntax for average of tag data

Issue: I want an LED display to output the average tag data of a given date range.
Problem: I have tried and expression and scripting on the LED display and I cant get it to work. p.s. no more tables please :slight_smile:
Things tried:
system.tag.queryTagCalculations(path='tag', calculation='Average',startDate='Custom property 1', endDate="Custom property 2')
system.tag.queryTagHistory(paths='tag', ,startDate='Custom property 1', endDate='Custom property 2',aggra="Average")
What am doing wrong?... assume I spelled everything correctly. :slight_smile:

Can you show a screenshot of exactly what you're trying and where?
You mention 'expression' and 'scripting' in your post, but both examples are using scripts. You're also not using valid syntax to pass in parameters, and aggra="Average" is meaningless, since that's not a supported parameter for the function.

tried this in the Expression property for the LED display and the scripting...
system.tag.queryTagCalculations(paths=[{[default]Hi Speed Nordson/Line Speed FPM 2}],calculations=["Average"],startDate=[{Root Container.startDate5AM}],endDate=[{Root Container.stopDate2PM}])