<?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: help about listbox seletion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129176#M371323</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;May be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14651846832513173 jive_text_macro" jivemacro_uid="_14651846832513173"&gt;
&lt;P&gt;If(GetselectedCount(Year)=0,Sum({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}Sales),Avg({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}Sales))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this above expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales And average Sales of max year-219582.PNG" class="jive-image image-1" src="/legacyfs/online/126879_Sales And average Sales of max year-219582.PNG" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 03:47:54 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2016-06-06T03:47:54Z</dc:date>
    <item>
      <title>help about listbox seletion</title>
      <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129174#M371321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri; font-size: 11pt; color: #000000;"&gt;hi&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;I have a listbox (Year in this image).in this listbox I have two years (94 and 95).when I select 94 or 95 the text box&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;above the first line chart shows the daily mean of sales in month that selected in second listbox(Month)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11pt; font-family: Calibri;"&gt;But when I selected two years(94 and 95) the daily mean of sales in month that selected in second listbox(Month)&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;Will be wrong.because it calculated for two years in same month&lt;/SPAN&gt;&lt;BR style="text-align: -webkit-auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11pt; font-family: Calibri;"&gt;I need to calculate daily means for Year=95 not 94 and 95 and show it in textbox above the line chart.please help me.&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;Thanks&lt;/SPAN&gt;&lt;BR style="text-align: -webkit-auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mohammad hoseini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 12:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129174#M371321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-05T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: help about listbox seletion</title>
      <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129175#M371322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i have a list box that show two years in it (like 2015 and 2016)&lt;/P&gt;&lt;P&gt;i have a line chart that shows sales of 2016&lt;/P&gt;&lt;P&gt;when i select both two years in listbox i wana that chart caption shows only the average of 2016 sales not 2015 and 2016&lt;/P&gt;&lt;P&gt;how we can do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 12:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129175#M371322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-05T12:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: help about listbox seletion</title>
      <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129176#M371323</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;May be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14651846832513173 jive_text_macro" jivemacro_uid="_14651846832513173"&gt;
&lt;P&gt;If(GetselectedCount(Year)=0,Sum({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}Sales),Avg({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}Sales))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this above expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales And average Sales of max year-219582.PNG" class="jive-image image-1" src="/legacyfs/online/126879_Sales And average Sales of max year-219582.PNG" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 03:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129176#M371323</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-06-06T03:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: help about listbox seletion</title>
      <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129177#M371324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either (1) create two expressions using set analysis to select the max year (2016) in one and max year - 1 in the other, or (2) you can make year a second dimension. This assumes that the dimension is some smaller period than a year (quarter, month or week).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post a sample qvw with your expression for more specific help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 04:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129177#M371324</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-06T04:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: help about listbox seletion</title>
      <link>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129178#M371325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As u said that line chart shows only 2016 data,&lt;/P&gt;&lt;P&gt;does it means that in the expression you have hard coded year value to 2016 or is this some different case.&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 06:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-about-listbox-seletion/m-p/1129178#M371325</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2016-06-06T06:08:44Z</dc:date>
    </item>
  </channel>
</rss>

