<?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: Trend expression for monthly measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657587#M63571</link>
    <description>&lt;P&gt;I am answering for difference between first and last month&lt;/P&gt;&lt;P&gt;first create two fields like below in calendar&lt;/P&gt;&lt;P&gt;month(Date) as Month,&lt;BR /&gt;num(month(Date)) as MonthNum,&lt;/P&gt;&lt;P&gt;then create calculated dimension&lt;/P&gt;&lt;P&gt;=aggr(if((sum({&amp;lt;MonthNum={"$(=max(MonthNum))"}&amp;gt;}Sales)-sum({&amp;lt;MonthNum={"$(=min(MonthNum))"}&amp;gt;}Sales))&amp;gt;0,'Positive','Negative'),Text)&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 13:48:58 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2019-12-13T13:48:58Z</dc:date>
    <item>
      <title>Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657529#M63566</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know much about QSense expressions language and I need the expression to get the trend (positive or negative) of a monthly measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is the following (records of what users are consulting and the response time)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table: Query Detail&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Workbook&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Elapsed Time&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;May&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Mark&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Planning Sheet&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;2.4&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;May&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Lily&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Planning Sheet&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;2.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;June&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;john&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Planning Sheet&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;2.1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;Lily&lt;/TD&gt;&lt;TD&gt;Planning Sheet&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;August&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Mark&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Planning Sheet&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;August&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Lily&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Planning Sheet&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this table, I would get that the Planning Sheet Workbook has the following Average Elapsed Time per month:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Average Elapsed Time&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;2.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;2.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I want to build an expression that tells me if the tendence is increasing or decreasing. In this case is increasing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if I need something like the first month-last month and see if there's a difference, or also taking into account the weight of usage...&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657529#M63566</guid>
      <dc:creator>torraroger</dc:creator>
      <dc:date>2024-11-16T19:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657536#M63567</link>
      <description>&lt;P&gt;What exactly you want to achieve? Can you please elaborate and provide exact output you need?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 11:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657536#M63567</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-13T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657542#M63568</link>
      <description>&lt;P&gt;I now have a pivot table (See the table attached)&lt;/P&gt;&lt;P&gt;In this table I have the average elapsed time of the different Workbooks for every month. (Dimensions Workbook and Month, Measure Average Elapsed Time). The data is gathered from the example Query Detail table I posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a column in this table with only two outputs available for each Workbook:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1- POSITIVE:&lt;/STRONG&gt; When the trend over the month is decreasing, negative&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2- NEGATIVE:&lt;/STRONG&gt; When the trend over the month is increasing, positive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25509i3C1DD58A5334E255/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Dec 2019 11:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657542#M63568</guid>
      <dc:creator>torraroger</dc:creator>
      <dc:date>2019-12-13T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657555#M63569</link>
      <description>&lt;P&gt;How would you decide increasing or decreasing? Comparing current month with previous month?&amp;nbsp; If current month Avg is more than previous month Avg then increasing?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 12:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657555#M63569</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-13T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657561#M63570</link>
      <description>&lt;P&gt;I'm thinking about two options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comparing the Average Elapsed Time between the first month (january) and the actual,&lt;/P&gt;&lt;P&gt;Or, the one would be best:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comparing the same but with the weight of Count(workbook) to give more importance to the months that have been more used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 12:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657561#M63570</guid>
      <dc:creator>torraroger</dc:creator>
      <dc:date>2019-12-13T12:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression for monthly measure</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657587#M63571</link>
      <description>&lt;P&gt;I am answering for difference between first and last month&lt;/P&gt;&lt;P&gt;first create two fields like below in calendar&lt;/P&gt;&lt;P&gt;month(Date) as Month,&lt;BR /&gt;num(month(Date)) as MonthNum,&lt;/P&gt;&lt;P&gt;then create calculated dimension&lt;/P&gt;&lt;P&gt;=aggr(if((sum({&amp;lt;MonthNum={"$(=max(MonthNum))"}&amp;gt;}Sales)-sum({&amp;lt;MonthNum={"$(=min(MonthNum))"}&amp;gt;}Sales))&amp;gt;0,'Positive','Negative'),Text)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 13:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-expression-for-monthly-measure/m-p/1657587#M63571</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-13T13:48:58Z</dc:date>
    </item>
  </channel>
</rss>

