The number of output table base on “h” and row base on “d” under each “h”. “T” is footer have only one low. And table can overflow to many page in each “H”.
I try to use js script, snippet to create table like table in image but still can’t.
You best bet is to change how you extract your data. Simply change the second condition of your repeat by also including T. Also remove your third condition. Since multiple D and 1 T seems to be what you have in your data.
You could use a standard dynamic table and reformat the rows and cells to mimic a multi table layout. Attached a sample template using your data mapping configuration illustrating this concept. The styling is in the content_all_styles.css file.