<?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: Alternate States and Selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478714#M1136509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of offering a list box with a no real selection left for the user, why not use one list box to select the year and copy the selection from the default state to the alternate state, using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({AS&amp;lt;Year = $::Year&amp;gt;} Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 16:55:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-11-04T16:55:27Z</dc:date>
    <item>
      <title>Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478713#M1136508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using alternate states to compare two groups of data. I am comparing the programs of study offered by some other universities with the ones that we offer at our university. This is working but I now want to compare this data for two years. I have a list box for the main state with the two years and a list box with the alternate state for the two years (using the same field in the data) and I can select the same year in both but I wanted to know if there was a way of making it so I can ONLY select the same year for both states. Currently, it means you could compare 2012-13 for our university with 2012-13 OR 2013-14 with the others (or vice versa) - which is very confusing for users. Is there a way I can make the listbox for one of the states automatically select the same value as the listbox for the other state?Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478713#M1136508</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-04T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478714#M1136509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of offering a list box with a no real selection left for the user, why not use one list box to select the year and copy the selection from the default state to the alternate state, using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({AS&amp;lt;Year = $::Year&amp;gt;} Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478714#M1136509</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-04T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478715#M1136510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I think I understand the idea - but without a listbox, where would I put this calculation so it applies to the alternate state? And also, what do the :: mean in the calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 17:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478715#M1136510</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-04T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478716#M1136511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:: in your set analysis means "Select in the Year field for my alternate state, the same year as I select in my defaul state. That why you have $ in front of ::, because you want to use the Year in your defaul state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;P&gt;&lt;A href="http://biexperience.wordpress.com/" title="http://biexperience.wordpress.com/"&gt;BI Experience | A place to share our Business Intelligence experiences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 17:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478716#M1136511</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-11-04T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478717#M1136512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would still use one list box for year, applying this selection to both states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 17:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478717#M1136512</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-04T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478718#M1136513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison ... one option is using macros ...enclosed an example ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 17:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478718#M1136513</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2013-11-04T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478719#M1136514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend using set analysis as described above to apply the year selection from the default state to the alternate state in the chart expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could attempt to set the selection in the alternate state using triggered actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would reserve anything using macros as a last result since they are typically considered bad practice, due to the common belief that they will eventually be phased out of the QlikView product, as well as the fact that they do not always behave the same in AJAX as they do in Desktop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 19:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478719#M1136514</guid>
      <dc:creator>andrewpettit</dc:creator>
      <dc:date>2013-11-04T19:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478720#M1136515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your replies. I understand the Alternate State much better now. I think the problem is that I am trying to restrict a list box on the basis of the selection rather than create a chart. I have a list box which allows the user to select the year and then I want them to only be able to select the data in a further list box based on the entries for that year. I have two problems - first the year is a calculation (trimming some data off the end of an existing field) which seems to be causing problems. Second, although I've tried limiting the list box using an Expression (which has the set analysis in it as recommended by you all) rather than the relevant&amp;nbsp; field it just doesn't show anything at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help - I really appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478720#M1136515</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-05T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478721#M1136516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you upload a small sample file? Upload option is available in advanced editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478721#M1136516</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-05T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478722#M1136517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Unfortunately, I can't load a sample file - I've just been trying to create a sample and not been able to do it (and I have to go now unfortunately). The data comes from an xml file which I can't really make smaller very easily or quickly and then there are around 10 QVD files created. The data in total is around 1,000,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep trying with the set analysis. Thanks for your suggestions - I just need to work out how to apply them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478722#M1136517</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-05T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States and Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478723#M1136518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an update - the problem I was having seemed to be also because the year field I was using wasn't just the year but was a string followed by the year so I was having to calculate the year (using right(text,num)). In the end I created a new field for year which was the actual year data and then used that with a button where the actions were to select the relevant year in each state one after the other - so I have a button for 201213 and one for 201314.&lt;/P&gt;&lt;P&gt;Thank you all for your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-and-Selections/m-p/478723#M1136518</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2013-11-06T12:28:12Z</dc:date>
    </item>
  </channel>
</rss>

