Hello TrngLThanh, you can definitely fill in a table in a Google Docs template, even if the number of values is undefined. One way to achieve this is by using smart tags when building your template. Smart tags allow you to pull in data from a spreadsheet and dynamically replace the information in your document.
To learn more about how smart tags work and how to generate documents using them, I recommend checking out this article 😁