Hi @adnan_abbasi, are you able to provide any images or samples of the input datasets?
Greetings & Thanks for your replay,
Please find attached image.
Maybe I'm missing something, but isn't it just a selection of the OH sections from the CircuitSection table into the ElectricLine table? If there's multiple sections of OH on a single circuit you could use the StatisticsCalculator to sum the lengths and output a single record per circuit.
Hi @adnan_abbasi, just as @redgeographics mentioned, the StatisticsCalculator can be used here. You connect the CircuitSection table to the transformer. Inside, you'll have to group by the CircuitName, and set the Attributes to Analyze to the Length attribute. You can delete most of the values for the Calculate Attributes: leave the sum to calculate the total length and leave the Numeric Count or Total Count if you wanted to get the total number of sections that were added up.
Alternatively, the Aggregator will also work. Group by CircuitName, set a Count attribute if needed, and set the Length as the Attributes to Sum. Here, you have the option of creating a list of the Environment values if you wanted.