Page 1 of 1

Assigning 3 types of products based on percentages

Posted: Wednesday 22 February, 2017 - 09:56
by Helbe
Hi,

I am building a model where I want to assign labels to indicate that I have 3 different types of products, the product type will be based on %. I therefore search for a way to write:
Give product label 1 for 20 % of the products
label 2 for 40% of the products
label 3 in the rest of the cases
And then send the products in different channels depending on label.

Do you have any suggestions of how to model it?
I am thankful for the help!

Best regards,

Re: Assigning 3 types of products based on percentages

Posted: Wednesday 22 February, 2017 - 17:21
by Margit Thomsen
Hello Helbe,

if you don't want to use 4DScript Code to solve the problem you can implement the Empirical Distribution Atom (Library / Tools).

In the small example model attached the labels are set up cumulative in the Empirical Distribution Atom according to your example. The channel number is written on the product in the Source - Trigger on creation.

I wish you success with setting up your own model.

Best regards

Margit

Re: Assigning 3 types of products based on percentages

Posted: Tuesday 14 March, 2017 - 09:08
by Helbe
Hi,

Thank you for the reply!

I will try it :)