<?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 Average trend line calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2072153#M87950</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trendline.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107330i737B5730010A70F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="trendline.png" alt="trendline.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wondered if it is possible to change bar-color "above average trend line",&amp;nbsp; like the picture I posted above?&lt;/P&gt;
&lt;P&gt;I tried to write an expression to calculate the RGB color but&amp;nbsp; it doesn't work.&lt;/P&gt;
&lt;P&gt;It might be because that I don't know what the average trend line formula is.&lt;/P&gt;
&lt;P&gt;The expression shows correct but doesn't work.&lt;/P&gt;
&lt;P&gt;How can I solve the problem?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 03:03:44 GMT</pubDate>
    <dc:creator>Umeiko</dc:creator>
    <dc:date>2023-05-17T03:03:44Z</dc:date>
    <item>
      <title>Average trend line calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2072153#M87950</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trendline.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107330i737B5730010A70F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="trendline.png" alt="trendline.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wondered if it is possible to change bar-color "above average trend line",&amp;nbsp; like the picture I posted above?&lt;/P&gt;
&lt;P&gt;I tried to write an expression to calculate the RGB color but&amp;nbsp; it doesn't work.&lt;/P&gt;
&lt;P&gt;It might be because that I don't know what the average trend line formula is.&lt;/P&gt;
&lt;P&gt;The expression shows correct but doesn't work.&lt;/P&gt;
&lt;P&gt;How can I solve the problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 03:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2072153#M87950</guid>
      <dc:creator>Umeiko</dc:creator>
      <dc:date>2023-05-17T03:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average trend line calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073404#M88026</link>
      <description>&lt;P&gt;Use this measure&lt;/P&gt;
&lt;P&gt;Above(Sum(Sales), Avg(TOTAL Sum(Sales)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In colours tab colours by expression&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 17:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073404#M88026</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-19T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average trend line calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073520#M88045</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/222017"&gt;@Umeiko&lt;/a&gt;&amp;nbsp; what is your bar chart expression?&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 23:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073520#M88045</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-20T23:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Average trend line calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073578#M88053</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49432"&gt;@Chanty4u&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My bar chart expression is "budget achievement rate" like below:&lt;/P&gt;
&lt;P&gt;= 1+(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [Curmo_billing]) -Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget])) &lt;BR /&gt;/ fAbs(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget]))&lt;BR /&gt;&lt;BR /&gt;That's why I don't know how to get the average trend line.&lt;/P&gt;
&lt;P&gt;I tried expression below in color tab, qlik window shows "correct" but it doesn't work&lt;/P&gt;
&lt;P&gt;=if( 1+(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [Curmo_billing]) -Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget]))&lt;BR /&gt;/ fAbs(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget]))&amp;gt; avg(Total aggr(avg(1+(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [Curmo_billing]) -Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget]))&lt;BR /&gt;/ fAbs(Sum({$&amp;lt;[Profit_item]={'Booking'}&amp;gt; } [curmo_budget]))))), RGB(0,200,0), RGB(220,100,50))&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 00:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-trend-line-calculation/m-p/2073578#M88053</guid>
      <dc:creator>Umeiko</dc:creator>
      <dc:date>2023-05-22T00:04:31Z</dc:date>
    </item>
  </channel>
</rss>

