<?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 - Current Year vs Prior Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336310#M124059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could create a button that just toggles a variable. And then use field event triggers in settings-&amp;gt;document properties on field Year to trigger similar actions like above, but check for the variable state before acting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 20:08:25 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-06-04T20:08:25Z</dc:date>
    <item>
      <title>Alternate States - Current Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336307#M124056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Alternate States "A" and "B". Each Alternate State has it's own calendar, Year, Quarter and Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a button with an action, that takes the current Year, Quarter and Month selected in Alternate State "A",&amp;nbsp; and subtracts One Year then applies this selection onto Alternate State "B".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Someone is viewing Alternate State "A" the year selected is "2009" &lt;/P&gt;&lt;P&gt;2. They click the Year over Year button&lt;/P&gt;&lt;P&gt;3. Then "2008" will automaticly be selected in Alternate State "B" along with the corresponding Quarter and Month in the Alternate State "A"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this:&lt;/P&gt;&lt;P&gt;Created a button with a "Select in Field" action&lt;/P&gt;&lt;P&gt;Field = Year&lt;/P&gt;&lt;P&gt;Search String = " B::Year = {$(=Max(A::Year)-1)} "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 16:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336307#M124056</guid>
      <dc:creator />
      <dc:date>2012-06-04T16:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Current Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336308#M124057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check that you've selected the state already in the action tab (where you added the actions to the button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then an appropriate selection - select in field action could maybe look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(no equal sign etc., just the field name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=max({&amp;lt;Year=$::Year&amp;gt;} Year)-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a small example,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 19:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336308#M124057</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-04T19:09:03Z</dc:date>
    </item>
    <item>
      <title>Alternate States - Current Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336309#M124058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much swuehl, you're awesome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more question, about making the user have less clicks when selecting between years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now the user must follow this process:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. Select a Year&lt;/P&gt;&lt;P&gt;2. Click the Year over Year button.&lt;/P&gt;&lt;P&gt;3. Select a different Year&lt;/P&gt;&lt;P&gt;4. Click the Year over Year button again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make the Year over Year button a lever or a selection? this way the user can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Turn the Year over Year button or selection ON&lt;/P&gt;&lt;P&gt;2. Select a Year.&lt;/P&gt;&lt;P&gt;3. Select a different Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if the user does not have to click the Year over Year after each different Year they select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 19:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336309#M124058</guid>
      <dc:creator />
      <dc:date>2012-06-04T19:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Current Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336310#M124059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could create a button that just toggles a variable. And then use field event triggers in settings-&amp;gt;document properties on field Year to trigger similar actions like above, but check for the variable state before acting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 20:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336310#M124059</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-04T20:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Current Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336311#M124060</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;I was looking at amending the field even trigger so that a field will match it's selections to another state (or across all states if possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? I have tried a field event trigger which works out to be =concat({[Question1]} DISTINCT WaveLabel)&amp;nbsp; and set the state of this event to Question2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the WaveLabel field in Question2 to match the WaveLabel field in Question1. The above works if ONE selection is made, but not if multiple selections are made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 11:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Current-Year-vs-Prior-Year/m-p/336311#M124060</guid>
      <dc:creator />
      <dc:date>2013-02-26T11:12:38Z</dc:date>
    </item>
  </channel>
</rss>

