Assigning 3 types of products based on percentages

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Helbe
Posts: 6
Joined: Tuesday 21 February, 2017 - 12:02

Assigning 3 types of products based on percentages

Post 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,
User avatar
Margit Thomsen
Posts: 5
Joined: Monday 17 January, 2011 - 10:19

Re: Assigning 3 types of products based on percentages

Post 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
Attachments
Empirical Distribution with Channel numbers.mod
(22.23 KiB) Downloaded 295 times
Helbe
Posts: 6
Joined: Tuesday 21 February, 2017 - 12:02

Re: Assigning 3 types of products based on percentages

Post by Helbe »

Hi,

Thank you for the reply!

I will try it :)
Post Reply