<?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: Calculating MOM and YOY in a qliksense KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculating-MOM-and-YOY-in-a-qliksense-KPI/m-p/1967011#M79693</link>
    <description>&lt;P&gt;MaxString(MonthName)-1 is not "The month before the current month". It is the last day of the month previous to MonthName (the first of the month minus one day).&lt;/P&gt;
&lt;P&gt;Try using AddMonths(MonthName,-1) instead, or applying MonthName(MonthName-1).&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 10:46:37 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-08-10T10:46:37Z</dc:date>
    <item>
      <title>Calculating MOM and YOY in a qliksense KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-MOM-and-YOY-in-a-qliksense-KPI/m-p/1967004#M79692</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I need to achieve below :-&lt;/P&gt;
&lt;P&gt;1) YOY and MOM&lt;/P&gt;
&lt;P&gt;2) Show these values in KPI and up and down arrows like below :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1660127084169.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86407i81443335EBC4211C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1660127084169.png" alt="Aspiring_Developer_0-1660127084169.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am able to calculate YOY but facing issue in MOM. PFB the expression :-&lt;/P&gt;
&lt;P&gt;=(Sum({&amp;lt;Month=, Date=, Brand ={'Plusnet'},MonthName={'$(=MaxString(MonthName))'}&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Brand ={'Plusnet'},Month=, Date=, MonthName={'$(=(MaxString(MonthName) -1))'}&amp;gt;} Value))&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Sum({&amp;lt;Brand ={'Plusnet'},Month=, Date=, MonthName={'$(=MaxString(MonthName))'}&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;This expression gives me in correct result and when I checked the variable values ,I found that for max month it is showing Apr-2022 but for previous month (i.e max(month)-1) gives me month in number format. Here are my fields:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1660127307051.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86408i5E5DAEE40E3A7547/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_1-1660127307051.png" alt="Aspiring_Developer_1-1660127307051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_2-1660127343889.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86409iFA679FE21EA75342/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_2-1660127343889.png" alt="Aspiring_Developer_2-1660127343889.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_3-1660127366707.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86410iE2415AF41BE45127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_3-1660127366707.png" alt="Aspiring_Developer_3-1660127366707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can anyone please help ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-MOM-and-YOY-in-a-qliksense-KPI/m-p/1967004#M79692</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-08-10T10:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating MOM and YOY in a qliksense KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-MOM-and-YOY-in-a-qliksense-KPI/m-p/1967011#M79693</link>
      <description>&lt;P&gt;MaxString(MonthName)-1 is not "The month before the current month". It is the last day of the month previous to MonthName (the first of the month minus one day).&lt;/P&gt;
&lt;P&gt;Try using AddMonths(MonthName,-1) instead, or applying MonthName(MonthName-1).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-MOM-and-YOY-in-a-qliksense-KPI/m-p/1967011#M79693</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-08-10T10:46:37Z</dc:date>
    </item>
  </channel>
</rss>

