I do this a lot. I have two tables (Lists - as they are sharepoint). One contains a list of our 29 Stores, the other contains a list of orders at each store. I want to show all open orders but by store in my result.
I do a 'get items' action on the store list to return all the stores.
I then do a 'get items' action on the order list and in the filter I put:
CurrentliststorelinkID eq 'StoreListLinkID' and STATUS eq 'Open'
(The first is name of the field that would match the store list and the second comes from the Dynamic Content. The last part is a known filter status)
I then do a 'select' action rather than create HTML and use the result of the select for the create HTML table. I base the value of the select (like your HTML) to be the value of the Stores List get Items from Dynamic content
I do one last thing - a compose action with a replace statement. This puts code into the HTML result to give my table and cells a border
This loops through all the stores and creates a list based on the particular store only.
I then email the result each time so I see it in a table in the email, which can be cut and paste into excel if wanted. You could also put the result into an excel table on your onedrive, but I found this problematic