question

Anggoro P avatar image
0 Likes"
Anggoro P asked Matthew Gillespie commented

Schedule source: rowNumber

Hi, I think it is a stupid question, but I just want to make sure this.

I use schedule source for defining customer demand. On the table I use 0, 1, 2, etc in the "time" field, indicating when corresponding demand qty are generated. Then I assign new label called "TreatDay" to get the day of demand (in integer, e.g. 1: sun; 2: mon; etc). By using "values by case" and case function "rowNumber" I set the case and desired day number (as attached)

I wonder should I use case = 0 for appointing the first row in my table because I set time = 0 in the first row? Or should I use case = 1

Choose One
schedule sourcevalues by case
a.jpg (84.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Matthew Gillespie commented

The rowNumber tells you what row in the table the token is associated with. All tokens created from the first row in the table will have a rowNumber of 1.

This arrival table will give you the following tokens and rowNumbers:

Token ID rowNumber
1 1
2 1
3 1
4 2
5 2
6 3
7 4
8 4

table.png (1.8 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.