This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Is there a way to have a variable that is only affected by one iteration within a loop activity? I mean, I have a variable var1 and it is updated within a loop, but I want that variable to affect only the particular iteration. That is, if I run 3 iterations at the same time, as all iterations modify the same variable var1, their values are overlapping. However, what I need is an isolated variable in each iteration. Is this possible?
Solved! Go to Solution.
Hi @amaaiia
Data Factory pipelines don't directly support loop-specific variables.
Hi @amaaiia
Thanks for using Fabric Community.
Data Factory pipelines don't directly support loop-specific variables. However, you can try this:
Use Set Variable Activity:
var1.
This might be helpful in your case. You can refer to this link for more help:
How to create iteration scoped variables inside ForEach activities in Azure Data Factory - Stack Ove...
Hope this helps. Please let me know if you have any further questions.
Hi @Anonymous
I don't understand. If I define new variable inside loop, imagine var2, var2 will be updated in each iteration too.
Hi @amaaiia
Data Factory pipelines don't directly support loop-specific variables.
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 6 | |
| 6 |