Hello, I am new to arcade and have been having some trouble with creating a table. This is my first post, as well, so if I’m missing something or going about this the wrong way, let me know. I have line features that contain fields for diameter and length. I want to create a table that sums up the length by diameter. For example, the total length of pipes with a 4 inch diameter is 2,000 ft. I’d like to write code that creates a table with all of the diameters on the left and the sum of the pipe lengths for that diameter on the right.
I haven’t been able to find similar cases like this online and I feel like I’ve just hit a wall. I tried a script that an AI suggested, but have just been getting vague syntax errors when attempting. Does the code that it suggests make sense?