Thank you so much for your sample. I used a similar approach but used a count variable field to do so. I built this variable to restrict the number of rows to be inserted using the preceding sibling function then I used a rule to say that if count = 1 then week day = Monday and so on. Count--> count(preceding-sibling::*) + 1, then I used a formatting rule in the repeating table to do not allow to insert more items if count => 5. Then converted my Days field to text and used Count to provide day (defaulted Days to Monday to avoid blank lines) values ( count = 1, Day = Monday; count = 2, Day = Tuesday; etc).