Hi. This is what I have done in this case.
Create a shared instance parameter called Volume in the beam family. Use a formula for that parameter = b x h x L.
Add the shared parameter to your tag formula and place it where needed.
If this solves your problem, please accept as solution.