Products by Category

Products by category shows a hierarchy of the product categories. You can click on each category to view the products under it.

You can set the product category in product view -> accounting section.

You can create product category in the Sales -> Configuration -> Product Categories and Attributes -> Product Categories.