You can set up Profit view to show the total revenue, costs and contribution margin for a group of products, customers or suppliers.
Below, you can see an example of a whole product group.
Below, you can see where you'll find Profit view in the report tabs
The article Profit view shows you how you can access Profit view for each customer, product and supplier.