Good to see you posting in the Community space, @David Barajas. I'm here to lend a hand.
In QuickBooks Online (QBO), you can utilize the Class Tracking or the Location Tracking features to keep track of your sub-companies sales and expenses.
If you want to track your transactions by department or product lines, use Class tracking. This way, you stay informed of the profit of your sub-companies. But if you want to categorize your data from different locations, offices, and departments, use Location tracking.
To learn more about this, feel free to check out these links: