I assume that you mean the unrealised profit in the inventory, in which case it depends whether the parent sold the goods to the subsidiary or the subsidiary sold the goods to the parent.
You should watch my free lectures on consolidations where this is explained with examples.