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, ...