As often happens, someone asked me a question and it spun off into a whole thing.
I made a blog post detailing how to setup a table that automatically adjusts its values based on a variable, and include a function to spin up as many of them as you like.
Check a look at https://demonnic.com/targeted-tables/