<?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 Change year with an input box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249783#M1181036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem. I´m trying to make a line chart with year and producut group as a dimensions.&lt;/P&gt;&lt;P&gt;I have two fields: [Average invoiced Price] and [OrderQuantityPerYear)&lt;/P&gt;&lt;P&gt;Year in the bottom and product group showed in the chart.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like to have an "input box" where I could change the year for the quantaty but I would like to see the average price per year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg, the raw data:&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantaty&lt;/P&gt;&lt;P&gt;2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&lt;/P&gt;&lt;P&gt;﻿2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿What I would like to do is.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿in my input box I would write 2010, then would like to see&lt;/P&gt;&lt;P&gt;﻿2009 8€ *120&lt;/P&gt;&lt;P&gt;﻿2010 10€ *120&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 120&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;If I write 2009 then I would like to see&lt;/P&gt;&lt;P&gt;﻿﻿﻿2009 8€ *100&lt;/P&gt;&lt;P&gt;﻿2010 10€ *100&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 100&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿I have tried to write the expression like this &lt;/P&gt;&lt;P&gt;=avg({Year=&amp;gt;=[Average invoiced Price]) * sum({$&amp;lt;Year={$test)&amp;gt;} OrderQuantityPerYear)&lt;/P&gt;&lt;P&gt;﻿and "test" is the displayed variables ﻿but it gives me only zero for the year I haven't write in: eg. 2010 &lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿﻿﻿2009 8€ *0&lt;/P&gt;&lt;P&gt;﻿2010 10€ *120&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 0&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿Please help me!&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿Thanks&lt;/P&gt;&lt;P&gt;﻿Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 22:23:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-02T22:23:39Z</dc:date>
    <item>
      <title>Change year with an input box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249783#M1181036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem. I´m trying to make a line chart with year and producut group as a dimensions.&lt;/P&gt;&lt;P&gt;I have two fields: [Average invoiced Price] and [OrderQuantityPerYear)&lt;/P&gt;&lt;P&gt;Year in the bottom and product group showed in the chart.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like to have an "input box" where I could change the year for the quantaty but I would like to see the average price per year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg, the raw data:&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantaty&lt;/P&gt;&lt;P&gt;2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&lt;/P&gt;&lt;P&gt;﻿2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12€&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿What I would like to do is.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿in my input box I would write 2010, then would like to see&lt;/P&gt;&lt;P&gt;﻿2009 8€ *120&lt;/P&gt;&lt;P&gt;﻿2010 10€ *120&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 120&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;If I write 2009 then I would like to see&lt;/P&gt;&lt;P&gt;﻿﻿﻿2009 8€ *100&lt;/P&gt;&lt;P&gt;﻿2010 10€ *100&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 100&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿I have tried to write the expression like this &lt;/P&gt;&lt;P&gt;=avg({Year=&amp;gt;=[Average invoiced Price]) * sum({$&amp;lt;Year={$test)&amp;gt;} OrderQuantityPerYear)&lt;/P&gt;&lt;P&gt;﻿and "test" is the displayed variables ﻿but it gives me only zero for the year I haven't write in: eg. 2010 &lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿﻿﻿2009 8€ *0&lt;/P&gt;&lt;P&gt;﻿2010 10€ *120&lt;/P&gt;&lt;P&gt;﻿2011 12€ * 0&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿Please help me!&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿Thanks&lt;/P&gt;&lt;P&gt;﻿Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 22:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249783#M1181036</guid>
      <dc:creator />
      <dc:date>2012-02-02T22:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change year with an input box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249784#M1181037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do that, but you need to aggregate the sum of quantity for that year, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Avg&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Price&lt;/SPAN&gt;) * &lt;SPAN class="s1"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;({&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&amp;lt; &lt;SPAN class="s2"&gt;Year&lt;/SPAN&gt; = {&lt;SPAN class="s4"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;} &amp;gt;} &lt;SPAN class="s3"&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Quantity&lt;/SPAN&gt;), &lt;SPAN class="s2"&gt;Year&lt;/SPAN&gt;) &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the file attached based on your example data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 03:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249784#M1181037</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-02-03T03:09:10Z</dc:date>
    </item>
    <item>
      <title>Change year with an input box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249785#M1181038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 07:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-year-with-an-input-box/m-p/249785#M1181038</guid>
      <dc:creator />
      <dc:date>2012-02-03T07:28:19Z</dc:date>
    </item>
  </channel>
</rss>

