<?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: How to: Average line based on expression values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907798#M653784</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;Remove Operator Dimension and add 3 expressions below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Operator O : Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Operator T : Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Average of O &amp;amp; T : =Rangesum(Column(1) + Column(2))/2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 09:34:31 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-08-03T09:34:31Z</dc:date>
    <item>
      <title>How to: Average line based on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907796#M653782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been playing arround with this chart, in which I now want to create an average line based on the blue and red line. Or on Operator dimension in general. If I would have 3 operators selected, then give the average line of those 3 operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to create a straight average line, but I want it to vary with every week. So the average should be based on the expresion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I define this line by adding a new expression? If so how do I do this?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94792" alt="benchmark.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94792_benchmark.png" style="height: 289px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, looking forward to some tips!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 08:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907796#M653782</guid>
      <dc:creator />
      <dc:date>2015-08-03T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Average line based on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907797#M653783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use only UtilizationWeek as dimension and three expressions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;O: sum({&amp;lt;operator={'O'}&amp;gt;}daily_cycles)&lt;/LI&gt;&lt;LI&gt;T: sum({&amp;lt;operator={'T'}&amp;gt;}daily_cycles)&lt;/LI&gt;&lt;LI&gt;Average: rangeavg(sum({&amp;lt;operator={'O'}&amp;gt;}daily_cycles),sum({&amp;lt;operator={'T'}&amp;gt;}daily_cycles))&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 09:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907797#M653783</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-03T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Average line based on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907798#M653784</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;Remove Operator Dimension and add 3 expressions below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Operator O : Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Operator T : Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Average of O &amp;amp; T : =Rangesum(Column(1) + Column(2))/2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 09:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907798#M653784</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-03T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Average line based on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907799#M653785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your input, both seem to work very nicely! This is exactly what I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However is it possible in QlikView to also make make the expression act in a dynamic way. What I'm trying to say, This newly defined expression is fixed to the specified operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I would select another operator in the list box, the graph will still show the specified operators O and T. That is why I put the operator in dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addon Im looking for is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=If(GetCurrentField(operator) = 'O', Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this expresion however does not work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In words, the expression should: Generate a line based on the &lt;EM&gt;selected&lt;/EM&gt; operator AND should match operator O. So if no operator 'O' is selected it just doesn't show a line. If this is possible I would now be able to make different selections for operators in a listbox, while using the same graph which just changes based on the selected operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I this case I should make this expression for every operator available, which is ok. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 10:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907799#M653785</guid>
      <dc:creator />
      <dc:date>2015-08-03T10:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Average line based on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907800#M653786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=If(GetFieldSelections(operator) = 'O', Sum({&amp;lt;operator={'O'}&amp;gt;} daily_cycles))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 10:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Average-line-based-on-expression-values/m-p/907800#M653786</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-03T10:56:53Z</dc:date>
    </item>
  </channel>
</rss>

