I have a similar problem that the function only return the first loop data. The result should be 2 loops and each loop has rows data. For example, The first loop is A and has 5 rows data and second loop is B and has 5 rows. The return value only A with 5 rows, it sould be 10 rows. 5 rows A + 5 rows B. How is the code should be? This function in model is bellow I have a similar problem that the function only