<?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 Variable alternate state in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2005412#M83204</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;in my app I try to use variables and alternate states.&lt;/P&gt;
&lt;P&gt;I have a filter bar with the field 'year' and a variable vYear. The variable is set by '= year'.&lt;/P&gt;
&lt;P&gt;There is also a Text &amp;amp; image Chart that shows me the value of the variable.&lt;/P&gt;
&lt;P&gt;I also have an alternate state 'MyState' and the default state of course.&lt;/P&gt;
&lt;P&gt;When the filter bar and the text field are assigned to the default state, the text field shows me the value of vYear.&lt;BR /&gt;Also when I change the filter the text box shows the correct changed variable.&lt;BR /&gt;When I assign the filter bar and the text box to 'MyState' the text box shows the old value of the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched the internet and only found this post for Qlik View: &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Variables-alternate-state/m-p/810361" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Variables-alternate-state/m-p/810361&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't variables be assigned to alternate states in Qlik Sense either?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 15:48:22 GMT</pubDate>
    <dc:creator>Thomas23</dc:creator>
    <dc:date>2022-11-16T15:48:22Z</dc:date>
    <item>
      <title>Variable alternate state</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2005412#M83204</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;in my app I try to use variables and alternate states.&lt;/P&gt;
&lt;P&gt;I have a filter bar with the field 'year' and a variable vYear. The variable is set by '= year'.&lt;/P&gt;
&lt;P&gt;There is also a Text &amp;amp; image Chart that shows me the value of the variable.&lt;/P&gt;
&lt;P&gt;I also have an alternate state 'MyState' and the default state of course.&lt;/P&gt;
&lt;P&gt;When the filter bar and the text field are assigned to the default state, the text field shows me the value of vYear.&lt;BR /&gt;Also when I change the filter the text box shows the correct changed variable.&lt;BR /&gt;When I assign the filter bar and the text box to 'MyState' the text box shows the old value of the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched the internet and only found this post for Qlik View: &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Variables-alternate-state/m-p/810361" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Variables-alternate-state/m-p/810361&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't variables be assigned to alternate states in Qlik Sense either?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2005412#M83204</guid>
      <dc:creator>Thomas23</dc:creator>
      <dc:date>2022-11-16T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable alternate state</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2006117#M83263</link>
      <description>&lt;P&gt;Variables themselves can't be assigned to a different state as far as I'm aware, but aggregations can. If your variable is set to "=year", it's important to understand that qlik defaults to the Only() aggregation if none other is specified. Thus, your variable is actually set to "=Only(Year)", which is equivalent to "=Only({$} Year)", where $ equals the default state. So, if you want your variable to contain the year value of 'MyState', you need to set your variable as "=Only({MyState} Year)", and it should follow the year-field from the alternative state.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2006117#M83263</guid>
      <dc:creator>oskartoivonen</dc:creator>
      <dc:date>2022-11-17T21:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable alternate state</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2006369#M83282</link>
      <description>&lt;P&gt;It works!&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-alternate-state/m-p/2006369#M83282</guid>
      <dc:creator>Thomas23</dc:creator>
      <dc:date>2022-11-18T11:11:16Z</dc:date>
    </item>
  </channel>
</rss>

