<?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: expression wrong correct me? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769186#M1038909</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;You can try this &lt;/P&gt;&lt;P&gt;sum({&amp;lt;year=,monthnum=&amp;nbsp; &amp;gt;} sales)&amp;nbsp;&amp;nbsp; / count(DISTINCT monthnum)&lt;/P&gt;&lt;P&gt;But tough to tell works if possible provide any sample file with few rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Dec 2014 08:07:12 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-12-20T08:07:12Z</dc:date>
    <item>
      <title>expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769185#M1038908</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;sum({&amp;lt;year=,monthnum=}&amp;gt;}sales/count(monthnum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here&lt;/P&gt;&lt;P&gt;year:&lt;/P&gt;&lt;P&gt;2000&lt;/P&gt;&lt;P&gt;2001&lt;/P&gt;&lt;P&gt;2002&lt;/P&gt;&lt;P&gt;2003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;monthnum:&lt;/P&gt;&lt;P&gt;05&lt;/P&gt;&lt;P&gt;06&lt;/P&gt;&lt;P&gt;07&lt;/P&gt;&lt;P&gt;08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want calculate the avg of all months , pls tell me above expression correct or not ?&lt;/P&gt;&lt;P&gt;if wrong pls correct me&amp;nbsp; and if u have another way to calculate pls tell me that expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 07:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769185#M1038908</guid>
      <dc:creator />
      <dc:date>2014-12-20T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769186#M1038909</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;You can try this &lt;/P&gt;&lt;P&gt;sum({&amp;lt;year=,monthnum=&amp;nbsp; &amp;gt;} sales)&amp;nbsp;&amp;nbsp; / count(DISTINCT monthnum)&lt;/P&gt;&lt;P&gt;But tough to tell works if possible provide any sample file with few rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769186#M1038909</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-20T08:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769187#M1038910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for Total sales i have written like this&amp;nbsp; =&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum({&amp;lt;year=,monthnum=&amp;nbsp; &amp;gt;} sales)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for avg i have written like this but i am getting same output for both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum({&amp;lt;year=,monthnum=&amp;nbsp; &amp;gt;} sales)&amp;nbsp;&amp;nbsp; / count(DISTINCT monthnum)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769187#M1038910</guid>
      <dc:creator />
      <dc:date>2014-12-20T08:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769188#M1038911</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;What is your month wise average result let assume this data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="29"&gt;year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;monthnum&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="35"&gt;sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;14578&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3467&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2002&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3468&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;47980&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769188#M1038911</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-20T08:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769189#M1038912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, prod, Sales, Monthnum, Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/08/2012, E8, 208, 08, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/08/2012, E7, 102, 08, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/07/2012, A1, 100, 07, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/09/2012, A4, 106, 07, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/05/2012, A2, 21, 05, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/06/2013, B2, 90, 06, 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/02/2013, B3, 29, 02, 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/06/2011, C3, 20, 06, 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20/12/2011, D4, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24/09/2011, D5, 230&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20/03/2012, E5, 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20/03/2012, E6, 900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/12/2014, A7, 211, 05, 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19/11/2014, B7, 901, 06, 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17/12/2014, B8, 291, 02, 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18/12/2014, C9, 201, 06, 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769189#M1038912</guid>
      <dc:creator />
      <dc:date>2014-12-20T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769190#M1038913</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim1:- Year&lt;/P&gt;&lt;P&gt;Dim2:- monthnum&lt;/P&gt;&lt;P&gt;Expre:-&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum( {&amp;lt;Year=, Monthnum=&amp;gt;}&lt;/TD&gt;&lt;TD&gt;Sales)&amp;nbsp; / Count(Monthnum)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73942" alt="Charts.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73942_Charts.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And for blank value remove from the list box&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73946" alt="BlankList.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/73946_BlankList.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And let me know you have few rows blank values you want to remove them or keep as it is because it has no details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769190#M1038913</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-20T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: expression wrong correct me?</title>
      <link>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769191#M1038914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the average by&lt;/P&gt;&lt;P&gt;SUM(Sales) / COUNT(Distinct NumMonth&amp;amp;Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Avg(Aggr(SUM(Sales),NumMonth,Year))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 10:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-wrong-correct-me/m-p/769191#M1038914</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-20T10:15:11Z</dc:date>
    </item>
  </channel>
</rss>

