<?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 Set Analysis Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185448#M49930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What are you trying to elinate using CUSTOMER_NO-={''} ? There may be other ways to construct.&lt;/P&gt;&lt;P&gt;Since I don't know your table, maybe your avg get more lines when you do the average.&lt;/P&gt;&lt;P&gt;Try sum({&amp;lt;STATUS={'Sold'}, CUSTOMER_NO-={''}&amp;gt;} BALANCE)/ count({&amp;lt;STATUS={'Sold'}, CUSTOMER_NO-={''}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;(I used ID because I don't know what key you can use)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Apr 2011 04:00:18 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-04-16T04:00:18Z</dc:date>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185444#M49926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am having a small issue with the use of Avg function in a set analysis expression. I have an expression that looks for the average balance as shown below&lt;/P&gt;&lt;P&gt;= avg({&amp;lt;STATUS={'Sold'}, CUSTOMER_NO-={''}&amp;gt;} BALANCE)&lt;/P&gt;&lt;P&gt;The problem is the value returned is just too small and it is not what I expect.&lt;/P&gt;&lt;P&gt;When I do a manual calculation of the avg Balance by doing a sum of all the values and dividing by the total number of records, I get a much higher value which is the correct value.&lt;/P&gt;&lt;P&gt;How can I get the average function to work correctly and return the right value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 17:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185444#M49926</guid>
      <dc:creator />
      <dc:date>2011-03-28T17:53:20Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185445#M49927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see anything wrong in your expression.&lt;BR /&gt;What do you get if you use&lt;BR /&gt;&lt;BR /&gt;=avg(BALANCE)&lt;/P&gt;&lt;P&gt;and select 'Sold' in Status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 18:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185445#M49927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-28T18:15:34Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185446#M49928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;Doing the average that way seems to work fine, but I need those selections in the set analysis piece to stay in instead of having to click on them or set triggers to activate them as I have a lot of avergaes to calculate and setting triggers won't be ideal for my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185446#M49928</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:37:24Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185447#M49929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tend to use dollar signs and double quote marks for my set analysis, so;&lt;/P&gt;&lt;P&gt;= avg({$&amp;lt;STATUS={"Sold"}, CUSTOMER_NO-={""}&amp;gt;} BALANCE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185447#M49929</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185448#M49930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What are you trying to elinate using CUSTOMER_NO-={''} ? There may be other ways to construct.&lt;/P&gt;&lt;P&gt;Since I don't know your table, maybe your avg get more lines when you do the average.&lt;/P&gt;&lt;P&gt;Try sum({&amp;lt;STATUS={'Sold'}, CUSTOMER_NO-={''}&amp;gt;} BALANCE)/ count({&amp;lt;STATUS={'Sold'}, CUSTOMER_NO-={''}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;(I used ID because I don't know what key you can use)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 04:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/185448#M49930</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-16T04:00:18Z</dc:date>
    </item>
  </channel>
</rss>

