<?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: PLEASE help.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387944#M1167786</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; i think your A and B value are string not number, may be. Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(A &amp;gt; '2000' and B &amp;lt; '2012' and C &amp;gt; 0, Sum(C)/Sum(total C))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max(A) gives any value or use MaxString(A) gives value. From this, you can get idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 21:42:54 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-10-05T21:42:54Z</dc:date>
    <item>
      <title>PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387939#M1167781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I format an expression to say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the average of the numbers in a field if conditions X, Y, and Z are met.&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="91" style="width: 539px; border: 1px solid rgb(0, 0, 0); height: 77px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to say give me the sum of column C ONLY for the individuals that meet the statement if A &amp;gt; 2010, if B &amp;lt;2012, and C is not (&amp;lt;&amp;gt;) 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 1st colum fails because C is 0&lt;/P&gt;&lt;P&gt;the 2nd column fails because A is not &amp;gt; 2010&lt;/P&gt;&lt;P&gt;The third colum passes since A is &amp;gt; 2010, B is &amp;lt;2012 and C is something other than 0 so I should get a returned value of 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to write an expression that gives you the value for a column for only hte rows that meet the conditions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387939#M1167781</guid>
      <dc:creator />
      <dc:date>2012-10-05T18:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387940#M1167782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use 'and'. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(A&amp;gt;2010 and B&amp;lt;2012 and C&amp;lt;&amp;gt;0,avg(C))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387940#M1167782</guid>
      <dc:creator />
      <dc:date>2012-10-05T18:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387941#M1167783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I tried - doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387941#M1167783</guid>
      <dc:creator />
      <dc:date>2012-10-05T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387942#M1167784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably your formatting then. Do you have a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387942#M1167784</guid>
      <dc:creator />
      <dc:date>2012-10-05T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387943#M1167785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfor. I don't. The script that you put (that I had used before) is saying, if those criteria is selected, then return the value. I want to say just return the value for these conditions - this makes me think that the avg() has to be at the beginning of hte expression - not the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(C), if (A&amp;gt;2010, B&amp;lt;2011, C&amp;lt;&amp;gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387943#M1167785</guid>
      <dc:creator />
      <dc:date>2012-10-05T18:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE help....</title>
      <link>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387944#M1167786</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; i think your A and B value are string not number, may be. Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(A &amp;gt; '2000' and B &amp;lt; '2012' and C &amp;gt; 0, Sum(C)/Sum(total C))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max(A) gives any value or use MaxString(A) gives value. From this, you can get idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 21:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PLEASE-help/m-p/387944#M1167786</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-05T21:42:54Z</dc:date>
    </item>
  </channel>
</rss>

