I have a problem that I can’t seem to get resolved.
I have a dataset that has an attribute with multiple entries separated by commas. I want the dashboard list to turn this into an array that lists these entries, and then include the title and the pdf link to these resources.
Example in the data
ID_num | Title | Related_nums | Pdf_link |
1 | Ocean | 3, 4 | Link 1 |
2 | Mountain | 3, 4, 5 | Link 2 |
3 | Lake | 2, 4, 5 | Link 3 |
4 | Stream | 1, 2, 3, 5 | Link 4 |
5 | Prairie | 4 | Link 5 |
To get the array, I used
var spacedRelNums = Replace($datapoint.Related_nums, ',', '<br>')
return {
attributes: {
Related_nums: spacedRelNums,
}
}
This is what I have, but I really would like the script to loop back around and put the names and links to the array table. I’m not sure how to do this.

I have been exploring using a data expression to create a dictionary to pull from, but then I don’t know how to reference that in the list widget since you can only have one data source.
Any help would be appreciated!