<?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 Re: Confusing behaviour of Alternate states in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538624#M108968</link>
    <description>&lt;P&gt;Have you confirmed that the object and field are both in the default state? If not, have you tried specifically referencing the state using the GetFieldSelection() parameter, and/or using double-semicolon to pass it (if that works in QS, I forget, I know it was a thing in QV)?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 10:10:20 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2025-12-09T10:10:20Z</dc:date>
    <item>
      <title>Confusing behaviour of Alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538618#M108966</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am encountering a strange situation while using alternate states. I am using &lt;STRONG&gt;getfieldselections(ISBFlag) &lt;/STRONG&gt;in my set analysis expression,&amp;nbsp;I did bind my filters and KPI using an alternate state, so when selections are made in &lt;STRONG&gt;ISBFlag&lt;/STRONG&gt; field, the values will get passed in set analysis expression only for that fixed KPI (which I configured to use the alternate state).&lt;/P&gt;&lt;P&gt;The issue I am facing is when I make selections, they are not getting passed in the KPI expression. Rather when I add only the&lt;STRONG&gt; getfieldselections(ISBFlag)&lt;/STRONG&gt; part from previous KPI set expression into a separate KPI and configure this KPI with same AE, strangely the value is passed perfectly.&lt;/P&gt;&lt;P&gt;For eg, I select &lt;STRONG&gt;Non-ISB&lt;/STRONG&gt; from &lt;STRONG&gt;ISBFlag&lt;/STRONG&gt; field, but instead of &lt;STRONG&gt;Non-ISB&lt;/STRONG&gt;, &lt;STRONG&gt;ISB&lt;/STRONG&gt; value gets passed in Set expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selections:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aditya_Chitale_0-1765272525497.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185651i857207B0C4DF5A3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aditya_Chitale_0-1765272525497.png" alt="Aditya_Chitale_0-1765272525497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evaluated Expression:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aditya_Chitale_1-1765272606195.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185652i484FF054A5F5A611/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aditya_Chitale_1-1765272606195.png" alt="Aditya_Chitale_1-1765272606195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be highly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 09:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538618#M108966</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2025-12-09T09:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing behaviour of Alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538624#M108968</link>
      <description>&lt;P&gt;Have you confirmed that the object and field are both in the default state? If not, have you tried specifically referencing the state using the GetFieldSelection() parameter, and/or using double-semicolon to pass it (if that works in QS, I forget, I know it was a thing in QV)?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 10:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538624#M108968</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-12-09T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing behaviour of Alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538626#M108969</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;, both the object and field are in the same state I have confirmed this several times. I also tried to pass getfieldselections() in double quotes.&lt;/P&gt;&lt;P&gt;I am not able to understand how to pass double semicolon for getfieldselections(). It would be very useful if you can help figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 10:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538626#M108969</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2025-12-09T10:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing behaviour of Alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538635#M108970</link>
      <description>&lt;P&gt;If both objects are in the same state (and the expression as well) then you shouldn't have to pass anything, but if one of the lot isn't, you'll want to parameterize your GetFieldSelections() or try double-colon.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;GetFieldSelections (&lt;/SPAN&gt;&lt;SPAN class=""&gt; field_name [, value_sep [, max_values [, state_name]]]&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;You'll want to set the fourth parameter to the appropriate state name here.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Double-colon is covered here, though it's outdated help (but I think it still works?)&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Examples%20of%20Alternate%20States%20in%20Chart%20Expressions.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Examples%20of%20Alternate%20States%20in%20Chart%20Expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 11:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538635#M108970</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-12-09T11:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing behaviour of Alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538648#M108974</link>
      <description>&lt;P&gt;Alternate states refers to objects and not to fields. Therefore will the getfieldselections() without specifying a certain state - like hinted from &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;- referring to the default-state.&lt;/P&gt;&lt;P&gt;Simpler and more powerful would be to use p() and e() instead of getfieldselections() and to nest there the wanted state.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 14:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Confusing-behaviour-of-Alternate-states/m-p/2538648#M108974</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-12-09T14:12:31Z</dc:date>
    </item>
  </channel>
</rss>

