<?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: Average based variable conditional selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513056#M482917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either I do not get your answer or I must have explained my issue in a incorrect way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your example it "works" as follows:&lt;/P&gt;&lt;P&gt;- Selection of date 23/07&lt;/P&gt;&lt;P&gt;- a distinct count of no. of operations (1) is returned (selection based) and title=58&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In relation to the issue that I have raised this discussion for I expect the following:&lt;/P&gt;&lt;P&gt;- Selection of date 23/07 &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (this would relate to year in the example above)&lt;/P&gt;&lt;P&gt;- expected result: average of title = 55,5 &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (average based on selection of the previous day where this would relate to the values for a given year in the example above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have studied the solution you have promoted and done some experimenting based on my experience. I was not able to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have explained the "issue" better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 14:07:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-23T14:07:20Z</dc:date>
    <item>
      <title>Average based variable conditional selection</title>
      <link>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513054#M482915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This is my very first post as being a new user in the community.I have now been experimenting with Qlikview for some time with mixed success. I have found this forum very useful to find answers to challenges that I have been running into. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Currently I am running into a issue for which I have not found any discussion on the community and therefore I sincerely hope you can help me find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Dashboard requires a graph with a average line. The average is to be determined based on the selected year. The expected result here is a average (single field) based on the previous years. Please see below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44407" class="jive-image-thumbnail jive-image" onclick="" alt="ScreenShot235.jpg" src="https://community.qlik.com/legacyfs/online/44407_ScreenShot235.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explaination of fields in the example&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Field selection: &lt;/SPAN&gt; represents the selection the user applies on the data displayed on the left;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expected result&lt;/SPAN&gt;: the calculation that is expected to be returned based on the selection;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expected returned value&lt;/SPAN&gt;: the value that will be plotted in the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All fields discussed reside in the same table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I would expect (in words) that the following is to be included in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selected year(s)&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&lt;/P&gt;&lt;P&gt;Inverse of the selection of the year &amp;lt; selected year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Until now I have not been able to solve this in any expression (although help function is quite good) and therefore stuck. I hope you can send me in the correct direction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513054#M482915</guid>
      <dc:creator />
      <dc:date>2013-07-23T13:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average based variable conditional selection</title>
      <link>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513055#M482916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: oops wrong attachment, should be the right one now&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513055#M482916</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-23T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Average based variable conditional selection</title>
      <link>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513056#M482917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either I do not get your answer or I must have explained my issue in a incorrect way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your example it "works" as follows:&lt;/P&gt;&lt;P&gt;- Selection of date 23/07&lt;/P&gt;&lt;P&gt;- a distinct count of no. of operations (1) is returned (selection based) and title=58&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In relation to the issue that I have raised this discussion for I expect the following:&lt;/P&gt;&lt;P&gt;- Selection of date 23/07 &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (this would relate to year in the example above)&lt;/P&gt;&lt;P&gt;- expected result: average of title = 55,5 &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (average based on selection of the previous day where this would relate to the values for a given year in the example above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have studied the solution you have promoted and done some experimenting based on my experience. I was not able to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have explained the "issue" better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 14:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-based-variable-conditional-selection/m-p/513056#M482917</guid>
      <dc:creator />
      <dc:date>2013-07-23T14:07:20Z</dc:date>
    </item>
  </channel>
</rss>

