I was doing automation for exporting a table for 10 stores and save as a csv file from Power BI to sharepoint.
The output of the flow is good, but the flow does not stop as defined.
At first, I was thinking maybe I shall put the 'Increment variable' outside of 'Apply to each', but not working.
Then, I was thinking maybe the 'Apply to each' shall only include 'Create file in sharepoint', still not working.
Could someone help me to see which step did I do wrong? The variable 'StoreIndex' does increment, but the stopping point 'StoreIndex' <= 3 is not executed.
Below are two versions of this flow.
Thanks in advance.