Jump to content

RandomRow : PropertyName column selected during simulation and rows conditional selection.


Alberto Lacort

Recommended Posts

How can I use the TableName.PropertyName.RandomRow function in these two situations? 
1. If the column of the weights (PropertyName) is determined during the simulation.
2. If I don't want all the rows to be taken into account. For example, only the rows that meet a condition based on other columns in the table.

Given Table1 as in the following figure :

image.png.8a9a199c723f89682c97ccb842fad9cc.png

StringProperty# columns are the filters and RealProperty# columns the weights used for function Random.Row. So, for situation :

1. I want to select one of the RealProperty# columns during the simulation but if I do that I can not use RandomRow because I need to write down the column name (PropertyName). Any suggestions for that?

2. I only want to use the weights that are associated between the rows that have A and X in the first two columns and that, therefore, the selected row is between one of those.

Thank you in advance.

Link to comment
Share on other sites

×
×
  • Create New...