Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Aggregation : what is function of DELETEHISTORY option in the last aggregation action?

Solved217 views5 days agoaggregation
0
Cristel Van Landeghem [DevOps Advocate]468 11th February 2025 0 Comments

10.2 and before.

We received in 2016 a protocol from Skyline for an aggretation element, that aggregates KPI’s from several other elements and aggregates those KPI’s (taking min, max and average for each).

Your doc I found : https://docs.dataminer.services/develop/devguide/Connector/AdvancedViewTablesOtherElement.html

For each KPI there is an action defined.

There are 100 KPI’s and the last one has an option DELETEHISTORY.

What is the function of this DELETEHISTORY and is it really necessary (pro’s and con’s) ?

Code penultimate and last action:

<Action id=”3183″>
<On>protocol</On>
<Type options=”remoteElements:11;trigger:3183;destination:3183;type:avg;mergeResult”>merge</Type>
</Action>
<Action id=”1031″>
<On>protocol</On>
<Type options=”remoteElements:11;trigger:1031;DELETEHISTORY;destination:3062;type:sum;mergeResult”>merge</Type>
</Action>

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Laurens Moutton [SLC] [DevOps Enabler]9.02K Posted 11th February 2025 1 Comment

Hi,

DeleteHistory removes the rows from the destination table that are not present in the aggregate result.

Suppose that the source table has columns and values:
PK  Val   Group
1    5      1
2    6      1
3    7      2
4    8      3

When taking the sum per group, this results in:
Group Sum
1        11
2        7
3        8

Suppose that the souce table then changes into:
PK  Val  Group
1    6     1
2    7     1
3    8     2

Without DeleteHistory, this results in the following aggregation:
Group  Sum
1         13
2         8
3         8 <— Note this row

As can be seen in the result group “3” is still present with value 8, while this group is not present (anymore) in the source. With DeleteHistory being present then this row will be removed from the result table. To increase performance, the DeleteHistory will only be added to the last aggregate action on the table. E.g. when the source table has 4 columns that need to be aggregated then it does not make sense to check to remove rows at every aggregation, this is only done with the latest action.

Regards,

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5 days ago
Cristel Van Landeghem [DevOps Advocate] commented 12th February 2025

Thanks for this fast and clear answer

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs