<?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: Taking average by if else? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396427#M147816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue. Bad field name. Your formula might be right Jagan and I think there is a small mistake at my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to tell you that Score is a just a label and in expression I have the whole calculation to calculate it. If you can think of possible reasons for Bad field name plz enlighten me with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2013 06:09:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-01T06:09:18Z</dc:date>
    <item>
      <title>Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396423#M147812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 columns Named as Area,Their performance score and its rank across all areas.&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Area Score Rank&lt;/P&gt;&lt;P&gt;Chicago 80 1&lt;/P&gt;&lt;P&gt;Bay 60 2&lt;/P&gt;&lt;P&gt;Ohio 50 3&lt;/P&gt;&lt;P&gt;LA 40 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to take the average scores of all those areas&amp;nbsp; when rank is less than 3 and when rank is greater than 2. How to do it ?&lt;BR /&gt;If it has to be done by if else please tell me the syntax&lt;/P&gt;&lt;P&gt;I tried if(rank(score)&amp;lt;3,Avg(score),0)&lt;/P&gt;&lt;P&gt;It says bad field name Score&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 05:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396423#M147812</guid>
      <dc:creator />
      <dc:date>2013-03-01T05:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396424#M147813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(rank(score)&amp;lt;3,Avg(score),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;score in your expression is not Capitalized ...but your field is&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396424#M147813</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-03-01T06:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396425#M147814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rank is &amp;lt;2:&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;Rank={'&amp;lt;3'}&amp;gt;} Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rank &amp;gt; 2:&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;Rank={'&amp;gt;2'}&amp;gt;} Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396425#M147814</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-01T06:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396426#M147815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry it was typing mistake but in qlik view i used Score only.(Capital S)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396426#M147815</guid>
      <dc:creator />
      <dc:date>2013-03-01T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396427#M147816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue. Bad field name. Your formula might be right Jagan and I think there is a small mistake at my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to tell you that Score is a just a label and in expression I have the whole calculation to calculate it. If you can think of possible reasons for Bad field name plz enlighten me with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396427#M147816</guid>
      <dc:creator />
      <dc:date>2013-03-01T06:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396428#M147817</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would bit change expression given by Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Avg({&amp;lt;Rank = {"&amp;lt;3&amp;gt;=2"}Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This will give the avg of score only where the rank is greater than 3 and lesser than 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396428#M147817</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-01T06:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396429#M147818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attached sample file that you are working? It would be helpful in understanding the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396429#M147818</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-01T06:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396430#M147819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;Sorry the uploading is disabled in my company as we are wokring on the client data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396430#M147819</guid>
      <dc:creator />
      <dc:date>2013-03-01T06:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396431#M147820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you calculating the rank, it is a static/dynamic, the expressions given exactly works as expected, can you post some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396431#M147820</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-01T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Taking average by if else?</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396432#M147821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So data is something like that&lt;/P&gt;&lt;P&gt;To calculate the score I have 10 metrics. We give the score for each metric from 0 to 10 and add all those 10 metrics to get the score for an area. &lt;/P&gt;&lt;P&gt;So while defining score there is entire calculations to get score for each metric and then adding them up.&lt;/P&gt;&lt;P&gt;Label: Score&lt;/P&gt;&lt;P&gt;Exp: Sum of each metric score for each area&lt;/P&gt;&lt;P&gt;Rank: Rank(Score): it gave me the rank of all areas. &lt;/P&gt;&lt;P&gt;The data is for 3 months so Score and Rank changes according to the month selection. hence they are dynamic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 07:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-average-by-if-else/m-p/396432#M147821</guid>
      <dc:creator />
      <dc:date>2013-03-01T07:27:07Z</dc:date>
    </item>
  </channel>
</rss>

