Hi Everyone,
I would like to ask your help about getting the final segmentation of a company which has multiple segments and with different scenarios.
Below is the ss of the raw data and the expected result. Attached is the excel file that contains the data and the explanation of each company scenarios.
For any clarifications, please let me know. Thank you.


| *Segmentation Hierarchy | |
| 1 | Shoes |
| 2 | Apparel |
| 3 | Slippers |
| 4 | Cap |
| How to identify the Final Segmentation per scenario | |
| Nike | If a Company has 2 Shoes and 2 Apparel then the final Segmentation is Shoes since in the Segmentation Hierarchy Shoes is on top of the hierarchy |
| Adidas | If a Company has 1 Shoes and 1 Apparel then the final Segmentation is Shoes since in the Segmentation Hierarchy Shoes is a much higher hierarchy |
| Reebok | If a Company has 1 Cap, 1 Apparel and 1 Slippers then the final Segmentation is Apparel since in the Segmentation Hierarchy Apparel is a much higher hierarchy among the 3 |
| Underarmor | If a Company has 1 Shoes and 2 Slippers then the final Segmentation is Slippers since MAJORITY of the Segmentation is Slippers |
| World Balance | If only 1 segmentation then stays as is |
| JD Sports | For no segmentation then stays as null |