Skip to main content

We are investigating if there is a way to create a tag that would sum the totalizer and/or flow indicator? I have read through this article but not exactly the answer I am looking for: 

https://community.trendminer.com/functional%2Dtips%2Dtricks%2D48/optimizing%2Ddaily%2Dproduction%2Dtracking%2Dfour%2Dmethods%2Dfor%2Daccurate%2Dmonitoring%2D351

Hi,

Great question! Depending on your specific needs, TrendMiner offers several options to perform aggregations over time:

1. Custom Calculations (Python-Based Tags)

For advanced aggregations like totalizers or block aggregates over extended periods, TrendMiner's Custom Calculations feature is ideal. This allows you to define new tags using Python scripts, enabling complex computations tailored to your requirements. You can access this feature through the Tag Builder. For detailed guidance, refer to the Custom Calculations User Guide.

2. Calculations on Search Results

If you want to perform aggregations on specific time periods identified through searches, TrendMiner provides a way to calculate metrics like integrals over these periods:

  • Perform a Search: Identify the time frames you're interested in by conducting a search. TrendMiner offers built-in time tags like TM_hour, TM_day, TM_month, and TM_year to facilitate time-based aggregations. These tags remain constant during their respective time intervals, so if you want to calculate totalizers per hour, day, or month, you can search for periods where these tags are constant to isolate the relevant time windows.

  • Apply Calculations: Once you have your search results, you can apply calculations such as integrals to these periods. This is particularly useful for quantifying total values over time. Detailed instructions are available in the Calculations on Search Results guide.

  • Write to Context Items: After performing the calculations, you can write the results to context items for documentation or further analysis. This process is outlined in the Working with the Search Result List guide.

If you need further assistance or have specific scenarios in mind, feel free to ask!

 


Reply