<?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 Monthly trend line in Line chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Monthly-trend-line-in-Line-chart/m-p/1707587#M54288</link>
    <description>&lt;P&gt;I have a line chart that is sum of values per date&lt;SPAN&gt;&amp;nbsp;(line chart image)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data example looks like this:&lt;/P&gt;&lt;PRE&gt;id       date         volume 
----------------------------
1      11/12/2019     203.1
2      11/12/2019     198.0
3      11/12/2019     209.0&lt;/PRE&gt;&lt;P&gt;which I have computed sum in Qlik and have following example data format for the line chart above:&lt;/P&gt;&lt;PRE&gt;date          sum 
--------------------
11/12/2019   610.1
11/17/2019   543.2
11/20/2019   550.8
11/30/2019   256.7
12/1/2019    1042
12/2/2019    885.1
12/4/2019    635.8
12/7/2019    967.4
12/10/2019   1011.3&lt;/PRE&gt;&lt;P&gt;I'd like to add a monthly trend line to make the trend look more obvious. So, for the example above, I want lines of November and December to have values of 490.2 and 908.3, respectively.&lt;/P&gt;&lt;P&gt;However, I can't figure out how to add measure that will compute the average of sum of values for that month and add a horizontal trend line for that month.&lt;/P&gt;&lt;P&gt;I found few posts on Qlik community and someone had suggested to use&lt;SPAN&gt;&amp;nbsp;`&lt;/SPAN&gt;sum(total &amp;lt;month&amp;gt; volume)/count(distinct total &amp;lt;month&amp;gt; date` , but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;month&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;thing which he seemed to have used to add as conditional statement doesn't work for me somehow, even after I create master dimension/measure for month time frame. Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:15:39 GMT</pubDate>
    <dc:creator>jkin</dc:creator>
    <dc:date>2024-11-16T02:15:39Z</dc:date>
    <item>
      <title>Monthly trend line in Line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Monthly-trend-line-in-Line-chart/m-p/1707587#M54288</link>
      <description>&lt;P&gt;I have a line chart that is sum of values per date&lt;SPAN&gt;&amp;nbsp;(line chart image)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data example looks like this:&lt;/P&gt;&lt;PRE&gt;id       date         volume 
----------------------------
1      11/12/2019     203.1
2      11/12/2019     198.0
3      11/12/2019     209.0&lt;/PRE&gt;&lt;P&gt;which I have computed sum in Qlik and have following example data format for the line chart above:&lt;/P&gt;&lt;PRE&gt;date          sum 
--------------------
11/12/2019   610.1
11/17/2019   543.2
11/20/2019   550.8
11/30/2019   256.7
12/1/2019    1042
12/2/2019    885.1
12/4/2019    635.8
12/7/2019    967.4
12/10/2019   1011.3&lt;/PRE&gt;&lt;P&gt;I'd like to add a monthly trend line to make the trend look more obvious. So, for the example above, I want lines of November and December to have values of 490.2 and 908.3, respectively.&lt;/P&gt;&lt;P&gt;However, I can't figure out how to add measure that will compute the average of sum of values for that month and add a horizontal trend line for that month.&lt;/P&gt;&lt;P&gt;I found few posts on Qlik community and someone had suggested to use&lt;SPAN&gt;&amp;nbsp;`&lt;/SPAN&gt;sum(total &amp;lt;month&amp;gt; volume)/count(distinct total &amp;lt;month&amp;gt; date` , but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;month&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;thing which he seemed to have used to add as conditional statement doesn't work for me somehow, even after I create master dimension/measure for month time frame. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Monthly-trend-line-in-Line-chart/m-p/1707587#M54288</guid>
      <dc:creator>jkin</dc:creator>
      <dc:date>2024-11-16T02:15:39Z</dc:date>
    </item>
  </channel>
</rss>

