Historize data according to conditions

Hello! They entrusted me to find out how to historicize tags according to certain conditions, for example, choose one or more devices and request various data, such as “Ia” in the image, but I have not been able to visualize it in the table. I can do it by entering the teams one by one, but the condition is that in the future more than 500 teams will be added.
In summary, I would like to know how to make reports of equipment and conditions chosen by the user.
Beforehand thank you very much.
I apologize for my English, but it is not my native language and I am supported by a translator.