Device selector in table

Hi,

I´m trying to implement something that seems very simple, but I cannot find the way to do it. I need to have a table, where the user can see the data of let´s say 5 devices at the same time. It would be one row per device, and one column per variable (4 variables in total). The thing is that the user has to be able to select in each row which device to show (from input or from dropdown, whichever doesn´t matter). How can I create that using the table widgets?

Thanks and regards!
Enrique