Power bi dashboard with about 100 plus buttons each representing a client, I can use the Id={variable} to successfully iterate through but when I get to the end, I want the robot to stop and because I don’t know the count beforehand I can’t set an end counter, anyway of knowing when the bit reaches the end?
Thanks
Phil
There is a sql backend so I could get a count before hand, but just wondering whether there is an alternative?
you can check if element exit with the dynamic selector you have created. if element exist you can go ahead with your flow if not exist that means you have iterated through all of your buttons and can stop the loop
I hope you are incrementing the counter variable and using it as an attribute in the selector.
The in the iteraction as the last step use an element exists and check for the presence of the next iterative element, then use an if condition, if false then exit from loop.