<?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: previous and actual selected year values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99819#M759605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey, &lt;SPAN lang="en"&gt;Thanks for sharing your knowledge. &lt;SPAN lang="en"&gt;I'lll try to assimilate your explanation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Regards!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 06:18:11 GMT</pubDate>
    <dc:creator>eva_maria</dc:creator>
    <dc:date>2018-08-21T06:18:11Z</dc:date>
    <item>
      <title>previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99813#M759599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my attached file, i've a chart (Points) where I show values &lt;SPAN lang="en"&gt;corresponding to the previous year to the selected one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I also need to show (on the same chart) the selected year values for Comm and value fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99813#M759599</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99814#M759600</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;Please, find a green table in the attachement. Is this the result you've wanted to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 10:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99814#M759600</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-08-20T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99815#M759601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if understood right. To see, data for current selection (year) and last to current selection year, you may try using exp, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&lt;STRONG&gt;$+&lt;/STRONG&gt;&amp;lt;Year={$(=(Year)-1)}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 10:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99815#M759601</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-08-20T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99816#M759602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey, your reply is perfect. Please, could you explain me how does it work the expresions&amp;nbsp; with pick, match, and &lt;/P&gt;&lt;P&gt;ValueList?&lt;/P&gt;&lt;P&gt;What's the different between $(=(Year)-0) and $(=(Year))?&lt;/P&gt;&lt;P&gt;Thanks for your invaluable help!!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99816#M759602</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-20T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99817#M759603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco. &lt;SPAN lang="en"&gt;Thanks for &lt;SPAN lang="en"&gt;be willing to help and try to solve my question. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;I've seen your file and &lt;SPAN lang="en"&gt;it really does not fit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; my question (may be my own fault) but your expresision also show the selected year and i only have to show previous selected year with selected year values in another column.&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99817#M759603</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-20T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99818#M759604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ValueList() creates a field with some values, it's often used for creating a dimensions.&lt;/P&gt;&lt;P&gt;If we have numeric values like ValueList(1,2,3) then we can use Pick() for setting an expression values for it:&lt;/P&gt;&lt;P&gt;=pick(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valuelist(1,2,3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,sum(sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,count(orders)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,count(customers)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if we have a string values such as ValueList('jan', 'feb', 'mar') than we can't use Pick() function directly, we should use Match() function for support:&lt;/P&gt;&lt;P&gt;pick(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;match(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valuelist('jan', 'feb', 'mar')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'jan'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'feb'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'mar'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) //will return 1,2,3 respectively&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; ,sum({&amp;lt;mon={'jan'}&amp;gt;}sales)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; ,&lt;SPAN style="font-size: 13.3333px;"&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;mon={'feb'}&amp;gt;}&lt;/SPAN&gt;sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; ,&lt;SPAN style="font-size: 13.3333px;"&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;mon={'mar'}&amp;gt;}&lt;/SPAN&gt;sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case I've created one valued field with ValueList(Year) and when a user selecting some year the value of ValueList(Year) is changing.&lt;/P&gt;&lt;P&gt;Then all I've to do is set different expressions for different calculations (Y-0 and Y-1, Point and Values).&lt;/P&gt;&lt;P&gt;And there no difference between Y - 0 and Y, it's the matter of taste &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I didn't explane it confusedly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99818#M759604</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-08-20T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99819#M759605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey, &lt;SPAN lang="en"&gt;Thanks for sharing your knowledge. &lt;SPAN lang="en"&gt;I'lll try to assimilate your explanation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Regards!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99819#M759605</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-21T06:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99820#M759606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sergey! one more question&lt;/P&gt;&lt;P&gt;Changing the year on the imput box on my real application, the following message appears&lt;/P&gt;&lt;P&gt;"Error in expression: All parameters to ValueList must be constant"&lt;/P&gt;&lt;P&gt;On my application i have three tables linked by year field&lt;/P&gt;&lt;P&gt;Do you know any reason??&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99820#M759606</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-22T11:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99821#M759607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Eva!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to use an inputbox you should replace 'Year' &lt;SPAN style="font-size: 10pt;"&gt;field in ValueList(Year) with your variable. And this replacement should be done in both dimension and expressions. Please, find the attached example.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99821#M759607</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-08-22T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99822#M759608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Sorry &lt;SPAN lang="en"&gt;I have not expressed myself correctly. I&lt;/SPAN&gt; wanted to say list box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;The funny thing is that sometimes it fails and sometimes it does not&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;thanks for your patience!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99822#M759608</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-22T11:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99823#M759609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Such error means you have more than one value if you selecting some years. You can try to use a variable where you can check that only one value of Year field is selected and then return it to ValueList() function. If it won't help we will make it with another way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99823#M759609</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-08-22T12:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: previous and actual selected year values</title>
      <link>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99824#M759610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sergey, Problem solved&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-and-actual-selected-year-values/m-p/99824#M759610</guid>
      <dc:creator>eva_maria</dc:creator>
      <dc:date>2018-08-22T12:47:25Z</dc:date>
    </item>
  </channel>
</rss>

