How can I make it a loop, Now i get only one value?
A quick search and this may get you there.
Not the most elegant loop but this should give you an idea
Thanks for the repsonse @SeanP
Thanks @AmolShah it worked perfectly