Yes, the second row will execute after the first one is fully completed. Here is exactly how Power Apps handles this under the hood:
Sequential Execution
In Power Fx, whenever you separate commands with a semicolon (;), you are telling the app to run them sequentially. When your app triggers Action11, the execution flow looks like this:
- Power Apps sees
Self.Action1();
- It jumps over to
Action1 and starts the ClearCollect(Collection1, Locations) command
- It waits for the data request to
Locations to finish downloading and for Collection1 to be fully populated
- Only after that background data operation signals that it is 100% complete will the app return to
Action11
- Finally, it executes the second line:
ClearCollect(Result, Filter(Collection1, Name = "East"));
Because of this sequential behavior, your Result collection is guaranteed to be filtering against the fully refreshed data in Collection1.
When would they run at the same time?
Formulas only run simultaneously if you explicitly wrap them in a Concurrent() function. For example:
Concurrent(
Self.Action1(),
ClearCollect(Result, Filter(Collection1, Name = "East"))
)
In this case, both would start at the exact same time, which would cause your second line to filter an empty or outdated collection. Since you are using the standard semicolon, you are perfectly safe!
When to use Concurrency
You should use the Concurrent function when you have multiple data requests or formulas that have no dependency on each other. This allows Power Apps to execute them at the same time, which is the easiest way to significantly speed up your app's performance.
🔗 Concurrent function - Power Platform | Microsoft Learn
By the way, using a Component to store reusable "helper" actions like this is a fantastic architectural pattern to keep your code clean and readable.
If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.
If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.