<?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 Help with if expression in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296662#M1200158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MadsGrathe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this&lt;/P&gt;&lt;P&gt;Avg(field_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 13:24:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-29T13:24:55Z</dc:date>
    <item>
      <title>Help with if expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296661#M1200157</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;New to qlikview and to the forums so bear over with me [:)]&lt;/P&gt;&lt;P&gt;I'm trying to get a graph to show a calculated value for a selected group of cells.&lt;/P&gt;&lt;P&gt;I have 3 columns in my data: UserID, LoginDays and Sales.&lt;/P&gt;&lt;P&gt;I want to find the average sales per user, but only for users with a certain amount of LoginDays.&lt;/P&gt;&lt;P&gt;I've tried with a simple "if" statement, but I can't get it to work... Anyone?&lt;/P&gt;&lt;P&gt;Here's what I've been trying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;if(LoginDays&amp;gt;5,sum(Sales)/count(distinct UserID),0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296661#M1200157</guid>
      <dc:creator>madsgrathe</dc:creator>
      <dc:date>2010-12-29T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Help with if expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296662#M1200158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MadsGrathe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this&lt;/P&gt;&lt;P&gt;Avg(field_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296662#M1200158</guid>
      <dc:creator />
      <dc:date>2010-12-29T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Help with if expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296663#M1200159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using Set Analysis,&lt;/P&gt;&lt;PRE style="MARGIN:0px;"&gt;sum({&amp;lt;LoginDays={'&amp;gt;5'}&amp;gt;} Sales)/count({&amp;lt;LoginDays={'&amp;gt;5'}&amp;gt;} distinct UserID).&lt;/PRE&gt;&lt;PRE style="MARGIN:0px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296663#M1200159</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-12-29T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Help with if expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296664#M1200160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much - worked like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had a feeling it had something to do with SetAnalysis...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-expression-in-chart/m-p/296664#M1200160</guid>
      <dc:creator>madsgrathe</dc:creator>
      <dc:date>2010-12-29T13:49:43Z</dc:date>
    </item>
  </channel>
</rss>

