<?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: Calculated average of in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697345#M1085201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this doesn't work, do the conversion in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 20:13:55 GMT</pubDate>
    <dc:creator>eduardo_sommer</dc:creator>
    <dc:date>2014-06-17T20:13:55Z</dc:date>
    <item>
      <title>Calculated average of in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697343#M1085196</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'd like to calculate average of string variable.&lt;/P&gt;&lt;P&gt;I have the variable:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Less, the same and More&lt;/P&gt;&lt;P&gt;I'd like to recode them to&amp;nbsp;&amp;nbsp; -1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and 1&amp;nbsp;&amp;nbsp; in expression&lt;/P&gt;&lt;P&gt;Is it possible to do it in the expression&lt;/P&gt;&lt;P&gt;Avg(IF(DDD='Less', -1, IF(DDD='the same', 0, IF(DDD='More', 1))) DDD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697343#M1085196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-17T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated average of in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697344#M1085198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Match(DDD, 'Less', 'the same', 'More)-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697344#M1085198</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-17T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated average of in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697345#M1085201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this doesn't work, do the conversion in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697345#M1085201</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-17T20:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated average of in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697346#M1085204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg(pick(match(DDD,'Less','Same amount','More'),-1,0,1))&lt;/P&gt;&lt;P&gt;It works&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-average-of-in-expression/m-p/697346#M1085204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-17T20:22:13Z</dc:date>
    </item>
  </channel>
</rss>

