You can add labels to a text command (or any other text box) by using a token.
We added more explanation to the Text command article to explain how.
Text command – Using Tokens
Basically, click the plus button next to any text box and you get a list of options.
If you go to the on-line examples and search regression, there are some set up that might be helpful.