Foreign IDs in multilevel dynamic page template populating all rows

Thanks again @dannio

I got the values to equal one another using ‘|map’ and then played with all the variations of ‘|selectattr’ I could think of and couldn’t get it to work. Assuming ‘equalto’ didn’t work as it was a multiresponse column. Interestingly ‘within’ and ‘containing’ didn’t work. After further experimentation, I was able to get the following to work;
{% set child_rows = hubdb_table_rows(child_table_id) %}
{% for child_row in child_rows %}
{% set category = child_row.category|map (“hs_name”) %}
{% set parent = dynamic_page_hubdb_row.hs_name %}
{% if parent is within category %}
<h6>
{{ child_row.company_name }}
</h6>
{% endif %}
{% endfor %}
Thanks again