Without seeing your specific example, only a general answer can be given. (see Packaged workbooks: when, why, how )
You can include a calculated field in a URL action. In fact, the entire URL can be a calculated field. So, you could have a completely different URL for the parent company and the sub-companies. In order to do this, you will need to place the calculated field with the URL somewhere in the view, but it can be hidden (i.e. a hidden column, the detail shelf, etc.).
I hope that helps.