<?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 Change in behavior for Alternate States in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Change-in-behavior-for-Alternate-States/ta-p/1716175</link>
    <description>&lt;P&gt;Modification were introduced between QlikView 11.20 and 12/12.10, changing how variables are evaluated and expanded in Alternate States in documents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&amp;nbsp;&lt;/H4&gt;
&lt;DIV style="margin-left: 40px;"&gt;QlikView 12.00 and 12.10&lt;BR /&gt;QlikView 12.20 (November 2017) and up&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;As part of Qliks continuous focus on improving reliability and stability, large parts of the code base were reviewed between QlikView 11.20 and 12/12.10. One of these focus areas was how &lt;STRONG&gt;Alternate States&lt;/STRONG&gt; defined in a QlikView Documents evaluate variables, as this was something that required lots of trial and error to set up correctly and sometimes led to unreliable data visualization.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;In QlikView 11.20, the variable was expanded in the first state encountered and this resulted in a random behavior when more than one alternate state was being used. Whereas in version 12 and up, the variable always belongs to a specific alternate state and this results in different behavior. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Because of this code change we encourage anyone using more than one Alternate State in QlikView documents to test those documents in the version intended to be used after an upgrade to make sure the Alternate States renders the desired outcome. With this change, Customers now have the possibility to set distinct variables for different states, adding increased functionality and flexibility. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;To specify which State a variable and expression belongs to, you need to add a State definition to the object, see the below example. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;vDimID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_DimensionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;, ', ') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;vExpID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt; =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_ExpressionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;,', ') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;should be modified with a reference to the Alternate State, in this example called Alt1 like so:&lt;BR /&gt;vDimID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Alt1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_DimensionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;, ', ')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;vExpID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt; =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Alt1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_ExpressionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;,', ') &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 May 2021 11:14:31 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-05-27T11:14:31Z</dc:date>
    <item>
      <title>Change in behavior for Alternate States</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Change-in-behavior-for-Alternate-States/ta-p/1716175</link>
      <description>&lt;P&gt;Modification were introduced between QlikView 11.20 and 12/12.10, changing how variables are evaluated and expanded in Alternate States in documents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&amp;nbsp;&lt;/H4&gt;
&lt;DIV style="margin-left: 40px;"&gt;QlikView 12.00 and 12.10&lt;BR /&gt;QlikView 12.20 (November 2017) and up&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;As part of Qliks continuous focus on improving reliability and stability, large parts of the code base were reviewed between QlikView 11.20 and 12/12.10. One of these focus areas was how &lt;STRONG&gt;Alternate States&lt;/STRONG&gt; defined in a QlikView Documents evaluate variables, as this was something that required lots of trial and error to set up correctly and sometimes led to unreliable data visualization.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;In QlikView 11.20, the variable was expanded in the first state encountered and this resulted in a random behavior when more than one alternate state was being used. Whereas in version 12 and up, the variable always belongs to a specific alternate state and this results in different behavior. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Because of this code change we encourage anyone using more than one Alternate State in QlikView documents to test those documents in the version intended to be used after an upgrade to make sure the Alternate States renders the desired outcome. With this change, Customers now have the possibility to set distinct variables for different states, adding increased functionality and flexibility. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN style="color: #333333;"&gt;To specify which State a variable and expression belongs to, you need to add a State definition to the object, see the below example. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;vDimID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_DimensionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;, ', ') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;vExpID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt; =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_ExpressionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;,', ') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;should be modified with a reference to the Alternate State, in this example called Alt1 like so:&lt;BR /&gt;vDimID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Alt1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_DimensionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;, ', ')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;vExpID&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt; =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Concat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Alt1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;_ExpressionID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;,', ') &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 May 2021 11:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Change-in-behavior-for-Alternate-States/ta-p/1716175</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-05-27T11:14:31Z</dc:date>
    </item>
  </channel>
</rss>

