Hi,
I'm working on an interesting case where I'm trying to capture a value from a column that has highest composition in a product. In this instance, I have 3 Products named A, B, and C. Each Product has different ingredients in its
Product A has Rice, Milk Solids, and Xantham Gum, with 60% of Rice, 10% of Milk Solids and 40% of Xantham Gum
Similarly, Product B has only one ingredient named Milk Solids which is 100%
Product C has Sugar (30%), Palm Oil (60%), and Rice (10%).
I'm trying to categories a product based on ingredient. For example if Product A has 60% Rice which is highest compared to all the other ingredient, then give me "Rice" next to Product A everywhere. And, in the case of Product C give me Palm Oil which is the highest with 60%.
The problem that I'm facing is that Rice is getting repeated.
Can anyone please suggest an solution to it
Thanks,
I'm working on an interesting case where I'm trying to capture a value from a column that has highest composition in a product. In this instance, I have 3 Products named A, B, and C. Each Product has different ingredients in its
Product A has Rice, Milk Solids, and Xantham Gum, with 60% of Rice, 10% of Milk Solids and 40% of Xantham Gum
Similarly, Product B has only one ingredient named Milk Solids which is 100%
Product C has Sugar (30%), Palm Oil (60%), and Rice (10%).
I'm trying to categories a product based on ingredient. For example if Product A has 60% Rice which is highest compared to all the other ingredient, then give me "Rice" next to Product A everywhere. And, in the case of Product C give me Palm Oil which is the highest with 60%.
The problem that I'm facing is that Rice is getting repeated.
Can anyone please suggest an solution to it
Thanks,