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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to perform aggregation actions on many to many relations?

Solved1.05K views28th January 2022aggregation development EPM
0
Gabriel Borges [SLC] [DevOps Advocate]646 26th January 2022 0 Comments

Hello Dojo,

So we currently have an EPM system where there are 3 levels of the topology that are related through many to many relations. The issue we are encountering is that the aggregation action syntax is dependent on a GroupBy Idx that has the PK to the table that will receive the aggregated result. But these many to many relations do not have a FK relation in their table, instead the relation is satisfied through an intermediary table that has a FK of both entities in a row.

So is there a way to use the aggregation action to perform these calculations using this many to many structure? Or is it only able to be done when it is a one to many or one to one relation?

Gabriel Borges [SLC] [DevOps Advocate] Selected answer as best 28th January 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Laurens Moutton [SLC] [DevOps Enabler]8.81K Posted 27th January 2022 0 Comments

Hi,

This is not possible what you’re currently trying to achieve.

An aggregate action needs to have a “groupby” column on which to group the results on and this will be the resulting primary key in the destination column. Aggregate actions don’t rely on relations or foreignkey columns. Only exception is a recursive table (row pointing to another row of the same table) where you want perform an aggregation on.

If you know that the child table will only have one parent then you could add an extra column in the child table to perform the “groupby” on so the result gets into the parent. Or go a level deeper in the topology if that level would have only one (grand)parent and start the aggregation from there (e.g. Node (child) could be linked to multiple downstream groups (parent), but a cable modem (grandchild) is linked to one downstream group (grandparent)) -> aggregate from cable modem to node and aggregate from cable modem to downstream group as aggregating from node to downstream group is not directly possible.

If that isn’t possible (child could have many parents, no direct link between grandchild and grandparent) then you’ll probably need to perform the calculation yourself in a QAction.

Gabriel Borges [SLC] [DevOps Advocate] Selected answer as best 28th January 2022
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