<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Increment value to a integer variable in PipeLine in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Increment-value-to-a-integer-variable-in-PipeLine/m-p/4103549#M5003</link>
    <description>&lt;P&gt;Hi, I've started to make a pipeline in Fabric, but I don't know how to increase the value of an integer variable using the&amp;nbsp;Set Variable Activity...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The variable initially has a value of 0, then I want it to have a value of 1&lt;/P&gt;&lt;P&gt;any ideas ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 05:05:19 GMT</pubDate>
    <dc:creator>gadopwbi</dc:creator>
    <dc:date>2024-08-16T05:05:19Z</dc:date>
    <item>
      <title>Increment value to a integer variable in PipeLine</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Increment-value-to-a-integer-variable-in-PipeLine/m-p/4103549#M5003</link>
      <description>&lt;P&gt;Hi, I've started to make a pipeline in Fabric, but I don't know how to increase the value of an integer variable using the&amp;nbsp;Set Variable Activity...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The variable initially has a value of 0, then I want it to have a value of 1&lt;/P&gt;&lt;P&gt;any ideas ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 05:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Increment-value-to-a-integer-variable-in-PipeLine/m-p/4103549#M5003</guid>
      <dc:creator>gadopwbi</dc:creator>
      <dc:date>2024-08-16T05:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Increment value to a integer variable in PipeLine</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Increment-value-to-a-integer-variable-in-PipeLine/m-p/4105096#M5017</link>
      <description>&lt;P&gt;I think you need to use a "helper" variable to achieve this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/control-flow-set-variable-activity#incrementing-a-variable" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/data-factory/control-flow-set-variable-activity#incrementing-a-variable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because there seems to be a limitation that variables cannot be self-referencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you would need to use two variables, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;counter_i&lt;/P&gt;&lt;P&gt;temp_j&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Choose your initial value for your variable (counter_i), e.g. counter_i = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, use these two activities to increment counter_i:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you set temp_j equal to counter_i.&lt;/P&gt;&lt;P&gt;Then, you set counter_i equal to temp_j + 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can repeat these two steps multiple times in order to keep incrementing the variables.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 07:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Increment-value-to-a-integer-variable-in-PipeLine/m-p/4105096#M5017</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-17T07:02:36Z</dc:date>
    </item>
  </channel>
</rss>

