<?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>article How to: Loop and reduce with always one selected value fields in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-Loop-and-reduce-with-always-one-selected-value-fields/ta-p/1902535</link>
    <description>&lt;P&gt;&lt;EM&gt;Note: loop and reduce will remove an app's section access that was defined through the load script. Offline usage needs to be enabled in your tenant's management console in order to use the Loop And Reduce block on an app outside a personal space. &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-manage-offline-functionality.htm" target="_blank" rel="noopener"&gt;More information on offline usage.&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You might have noticed that it is not possible to perform a loop and reduce operation on apps that contain fields with the Always One Selected Value property set to true.&lt;/P&gt;
&lt;P&gt;We've now released a new block, &lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt; in Qlik Application Automation that allows you to manage this setting for individual fields.&lt;/P&gt;
&lt;P&gt;The general idea is that you use this block to disable this property on all fields in the source app before executing the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block. When the loop and reduce operation is completed, you can execute another instance of this block to set the Always One Selected Value property back to true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Basic example&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;The following example is a practical application of this idea. The scenario is as follows: the source app has one field (Country) that has the Always One Selected Value property set to "true". This is also the field we want to reduce on during the loop and reduce operation.&lt;/P&gt;
&lt;P&gt;Before you begin this example, make sure you have a basic loop and reduce automation that uses the blocks&amp;nbsp;&lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;. If you have no experience with these blocks, &lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_self"&gt;take a look at this article&lt;/A&gt; or get started with the "Loop, reduce and distribute an app" template that you can find in the automations template picker in Qlik Sense SaaS. In this article, we'll start with the following example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_0-1646754864167.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73969i820AB8D24720C1C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_0-1646754864167.png" alt="Emile_Koslowski_0-1646754864167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add the block&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt; before the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block. Configure it to use the correct Field Name (Country in this example) and set the Always One Selected Value property to false.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_2-1646755123804.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73971iCA478BE3008181B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_2-1646755123804.png" alt="Emile_Koslowski_2-1646755123804.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Now add a&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;Clear Selection&lt;/STRONG&gt;&lt;SPAN&gt; block to make sure any leftover selections on this field are disabled.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_3-1646755191060.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73972i7B647DFC7A94826C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_3-1646755191060.png" alt="Emile_Koslowski_3-1646755191060.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Finally, add another &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt;&lt;SPAN&gt; block at the end of the automation to re-enable this property.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_4-1646755520604.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73973i1F9CBA87A125052A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_4-1646755520604.png" alt="Emile_Koslowski_4-1646755520604.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's it! We'll continue to build upon this automation in the next example were the source app contains multiple fields with the Always One Selected Value property set to true.&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Re-enabling this for the reduced apps&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;In this example, the app has multiple (two) fields that have the Always One Selected Value property set to true: "Country" and "Year". We still want to reduce on Country as in the previous example, but we'll also have to disable this for the Year field before performing the loop and reduce operation. The reason for this is that the Year field will always have a selection applied which limits the amount of available data for the loop and reduce process. If we don't change this property for the Year field, all data that was not included in the selected Year before reduction, will not be available in the reduced apps.&lt;/P&gt;
&lt;P&gt;We'll start this example where the previous example ended:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_5-1646755966302.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73974i409BC113451A716B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_5-1646755966302.png" alt="Emile_Koslowski_5-1646755966302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The first thing to add here is a new&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;block and a&amp;nbsp;&lt;STRONG&gt;Clear Selection&lt;/STRONG&gt; block for the Year field in the same way we did for the Country field in the first example. Tip: if you don't want your app to have any active selections before doing the Loop and Reduce operation, you can replace both &lt;STRONG&gt;Clear Selection&lt;/STRONG&gt; blocks with one &lt;STRONG&gt;Clear All Selections&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_7-1646756230134.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73976i23219089F96C7476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_7-1646756230134.png" alt="Emile_Koslowski_7-1646756230134.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;It makes no sense to re-enable this property for the Country field on the reduced &amp;amp; published apps since they'll only have one value available. But we do want to re-enable this for the Year field since that still has multiple values from before the reduction. To do this, add a &lt;STRONG style="font-family: inherit;"&gt;Set Always One Selected Value Field&lt;/STRONG&gt; &lt;STRONG style="font-family: inherit;"&gt;Property&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block and a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Save App&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;block right after the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;&lt;SPAN&gt; block. And map the App Id fields of both blocks to the output from the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;&lt;SPAN&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_0-1647248806085.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74361i53A4B33FBAEE77C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_0-1647248806085.png" alt="Emile_Koslowski_0-1647248806085.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Finally, make sure to re-enable this for the Year field on the source app as well:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_2-1647249352687.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74365iA9357F7A2417D719/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_2-1647249352687.png" alt="Emile_Koslowski_2-1647249352687.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Next steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Note that during the loop and reduce process, the&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value&lt;/STRONG&gt;&amp;nbsp;is disabled. It's possible that the app is used by someone else during the automation's run. If you think this is a risk or if you experience any issues with this, we suggest duplicating the app before performing the Loop And Reduce and removing the duplicate when the process has been completed.&lt;/LI&gt;
&lt;LI&gt;You might have noticed that we've added the Save App block in the second example. You can find more information about this block in the following articles:
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Automation-session-delays/ta-p/1886161" target="_self"&gt;Session delays&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-use-the-Save-App-block-in-Qlik-Application-Automation/ta-p/1889129" target="_self"&gt;Using the Save App block&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_self"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (basic)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-advanced/ta-p/1834378" target="_self"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (advanced)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 29 Sep 2022 07:29:02 GMT</pubDate>
    <dc:creator>Emile_Koslowski</dc:creator>
    <dc:date>2022-09-29T07:29:02Z</dc:date>
    <item>
      <title>How to: Loop and reduce with always one selected value fields</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-Loop-and-reduce-with-always-one-selected-value-fields/ta-p/1902535</link>
      <description>&lt;P&gt;&lt;EM&gt;Note: loop and reduce will remove an app's section access that was defined through the load script. Offline usage needs to be enabled in your tenant's management console in order to use the Loop And Reduce block on an app outside a personal space. &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-manage-offline-functionality.htm" target="_blank" rel="noopener"&gt;More information on offline usage.&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You might have noticed that it is not possible to perform a loop and reduce operation on apps that contain fields with the Always One Selected Value property set to true.&lt;/P&gt;
&lt;P&gt;We've now released a new block, &lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt; in Qlik Application Automation that allows you to manage this setting for individual fields.&lt;/P&gt;
&lt;P&gt;The general idea is that you use this block to disable this property on all fields in the source app before executing the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block. When the loop and reduce operation is completed, you can execute another instance of this block to set the Always One Selected Value property back to true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Basic example&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;The following example is a practical application of this idea. The scenario is as follows: the source app has one field (Country) that has the Always One Selected Value property set to "true". This is also the field we want to reduce on during the loop and reduce operation.&lt;/P&gt;
&lt;P&gt;Before you begin this example, make sure you have a basic loop and reduce automation that uses the blocks&amp;nbsp;&lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;. If you have no experience with these blocks, &lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_self"&gt;take a look at this article&lt;/A&gt; or get started with the "Loop, reduce and distribute an app" template that you can find in the automations template picker in Qlik Sense SaaS. In this article, we'll start with the following example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_0-1646754864167.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73969i820AB8D24720C1C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_0-1646754864167.png" alt="Emile_Koslowski_0-1646754864167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add the block&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt; before the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block. Configure it to use the correct Field Name (Country in this example) and set the Always One Selected Value property to false.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_2-1646755123804.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73971iCA478BE3008181B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_2-1646755123804.png" alt="Emile_Koslowski_2-1646755123804.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Now add a&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;Clear Selection&lt;/STRONG&gt;&lt;SPAN&gt; block to make sure any leftover selections on this field are disabled.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_3-1646755191060.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73972i7B647DFC7A94826C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_3-1646755191060.png" alt="Emile_Koslowski_3-1646755191060.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Finally, add another &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt;&lt;SPAN&gt; block at the end of the automation to re-enable this property.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_4-1646755520604.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73973i1F9CBA87A125052A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_4-1646755520604.png" alt="Emile_Koslowski_4-1646755520604.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's it! We'll continue to build upon this automation in the next example were the source app contains multiple fields with the Always One Selected Value property set to true.&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Re-enabling this for the reduced apps&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;In this example, the app has multiple (two) fields that have the Always One Selected Value property set to true: "Country" and "Year". We still want to reduce on Country as in the previous example, but we'll also have to disable this for the Year field before performing the loop and reduce operation. The reason for this is that the Year field will always have a selection applied which limits the amount of available data for the loop and reduce process. If we don't change this property for the Year field, all data that was not included in the selected Year before reduction, will not be available in the reduced apps.&lt;/P&gt;
&lt;P&gt;We'll start this example where the previous example ended:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_5-1646755966302.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73974i409BC113451A716B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_5-1646755966302.png" alt="Emile_Koslowski_5-1646755966302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The first thing to add here is a new&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value Field Property&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;block and a&amp;nbsp;&lt;STRONG&gt;Clear Selection&lt;/STRONG&gt; block for the Year field in the same way we did for the Country field in the first example. Tip: if you don't want your app to have any active selections before doing the Loop and Reduce operation, you can replace both &lt;STRONG&gt;Clear Selection&lt;/STRONG&gt; blocks with one &lt;STRONG&gt;Clear All Selections&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_7-1646756230134.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73976i23219089F96C7476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_7-1646756230134.png" alt="Emile_Koslowski_7-1646756230134.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;It makes no sense to re-enable this property for the Country field on the reduced &amp;amp; published apps since they'll only have one value available. But we do want to re-enable this for the Year field since that still has multiple values from before the reduction. To do this, add a &lt;STRONG style="font-family: inherit;"&gt;Set Always One Selected Value Field&lt;/STRONG&gt; &lt;STRONG style="font-family: inherit;"&gt;Property&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block and a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Save App&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;block right after the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;&lt;SPAN&gt; block. And map the App Id fields of both blocks to the output from the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Publish Reduced App To Managed Space&lt;/STRONG&gt;&lt;SPAN&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_0-1647248806085.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74361i53A4B33FBAEE77C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_0-1647248806085.png" alt="Emile_Koslowski_0-1647248806085.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Finally, make sure to re-enable this for the Year field on the source app as well:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Emile_Koslowski_2-1647249352687.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74365iA9357F7A2417D719/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emile_Koslowski_2-1647249352687.png" alt="Emile_Koslowski_2-1647249352687.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Next steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Note that during the loop and reduce process, the&amp;nbsp;&lt;STRONG&gt;Set Always One Selected Value&lt;/STRONG&gt;&amp;nbsp;is disabled. It's possible that the app is used by someone else during the automation's run. If you think this is a risk or if you experience any issues with this, we suggest duplicating the app before performing the Loop And Reduce and removing the duplicate when the process has been completed.&lt;/LI&gt;
&lt;LI&gt;You might have noticed that we've added the Save App block in the second example. You can find more information about this block in the following articles:
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Automation-session-delays/ta-p/1886161" target="_self"&gt;Session delays&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-use-the-Save-App-block-in-Qlik-Application-Automation/ta-p/1889129" target="_self"&gt;Using the Save App block&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_self"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (basic)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-advanced/ta-p/1834378" target="_self"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (advanced)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-Loop-and-reduce-with-always-one-selected-value-fields/ta-p/1902535</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2022-09-29T07:29:02Z</dc:date>
    </item>
  </channel>
</rss>

