Hi community! I’m stumped so I’m here. I have a map function (red arrow in image) that references two points (chast_int and locremctl_int) and returns two tables. Will the map function be applied to all rows in both tables?
I’m asking because the output I’m looking for is the map value which I will set to a new point_name. Just want to confirm this is how it works. Thank you!
@Marion_Akagimap() iterates over each row in all input tables, but only values in the row are available to the map iteration. map() structures row data as a record, and assigns the record to r—for example:
For map() to be able to compare chast_int to locremctl_int, those two columns need to exist in each row. For your specific query, you can use pivot() to do that:
@scott Thank you so much! I tried a pivot earlier but I had the aggregate window AFTER the pivot and it was dropping columns I needed but your solution of aggregate window before pivot and map at the end works beautifully! I appreciate you!