Using parameter you can try something like this. Create a parameter called Room and link your measures writing a CASE statement.
I've written two case one is for energy another for temp and linked with room parameter. See the screen shot.
workbook (version 9.3) attached for your reference. Let me know If this help.
Room.twbx 9.7 KB
Thank you, Mahfooj!
I'm not able to open your example file as I'm using Tableau Public, and Tableau Reader is not able to show the method you're using, such as the CASE statement.
I assume your approach works for the second data set shown in the post in which Energy and Temperature have been identified as individual measure variables.
I wonder how your approach can work for the first data set shown in my post in which the room name is associated with both variables.