<?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 Max Month Sales in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372252#M830478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would then build that into the script load.&amp;nbsp; I'll try to come up with an example shortly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 15:21:33 GMT</pubDate>
    <dc:creator>oscar_ortiz</dc:creator>
    <dc:date>2017-06-28T15:21:33Z</dc:date>
    <item>
      <title>Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372239#M830465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are calculating sales metric at Month and Quarter time periods. However, the requirement is to show only latest Month sales in a quarter at the Quarter time period. So when dimension is selected as Quarter, we have to show Sales metric by individual quarter and sales need to show for latest month in that quarter (don't want to sum up all 3-month sales is a quarter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this by making changes directly in chart expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372239#M830465</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372240#M830466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try something like: Sum(If(Mod(Num(Month(DATE_FIELD)), 3) = 0, Sales))&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 12:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372240#M830466</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-06-28T12:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372241#M830467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this logic is working. However, instead of If the condition can we write in Set Analysis?&lt;/P&gt;&lt;P&gt;Also, I need Maximum available Month in that Quarter not always picking the 3 month in the quarter. Ex: If we have April data as Max, then in Q2 it should pick the latest Month in the quarter and it will be April.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 12:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372241#M830467</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2017-06-28T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372242#M830468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer setting up my calendar with a YearMonth field for something like this.&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; YearMonth={$(=Max(YearMonth))} &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Month={$(=Max(Month))} &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 12:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372242#M830468</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372243#M830469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaswanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(Mod(Num(Month(Date#(YearM, 'YYYYMM'))), 3) = 0 OR Text(Date#(YearM, 'YYYYMM')) = Text($(=MaxString(TOTAL YearM))), Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach you a sample. I donot know how to do it with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372243#M830469</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-06-28T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372244#M830470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Oscar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic will work when we select any particular Quarter in the time period, I need sales irrespective of Quarter &lt;IMG alt="Sample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168411_Sample.PNG" style="height: auto;" /&gt;selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372244#M830470</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2017-06-28T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372245#M830471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to add another selection criteria into your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum( {&amp;lt; YearMonth={$(=Max(YearMonth))}, &lt;STRONG&gt;Quarter=&lt;/STRONG&gt; &amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This will ignore any selections in your Quarter field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Oscar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372245#M830471</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372246#M830472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not Working, I tried your logic in sample document shared by &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Munoz Hector .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Could you please check this.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372246#M830472</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2017-06-28T14:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372247#M830473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is the result you're looking to be returned that if you select 20163 as the quarter you still want to show the result for month 201702?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372247#M830473</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372248#M830474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; YearM={$(=Max( {1&amp;lt; YearQ= &amp;gt;} YearM))}, YearQ= &amp;gt;} Sales )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372248#M830474</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372249#M830475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it needs to show only the Max Month Sales of that Quarter. In the Stright table, the dimension is Quarter and when I am applying your logic, it is only showing values for the latest quarter. and for other quarter null is displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372249#M830475</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2017-06-28T14:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372250#M830476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is only a single month for Q1 2017 with a value 1300.&amp;nbsp; So it looks to me like this expression is actually working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="265813.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168456_265813.PNG" style="height: 337px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372250#M830476</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372251#M830477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I need output for other Quarter as well. As coming in expression 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372251#M830477</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2017-06-28T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372252#M830478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would then build that into the script load.&amp;nbsp; I'll try to come up with an example shortly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372252#M830478</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372253#M830479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the attached QVW.&amp;nbsp; I believe this is what you are looking for.&amp;nbsp; One thing to be aware of is that the table that is being loaded is already sorted by date.&amp;nbsp; If it isn't you'll want to make sure you sort your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just another thought, a well built master calendar could easily be used in this situation adding to the calendar an expression such as what we did in the script.&amp;nbsp; I find that dealing with dates in set analysis is much easier done when you are working with a master calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372253#M830479</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372254#M830480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaswanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've found the advice helpful or correct please close the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1372254#M830480</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-29T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Max Month Sales in table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1615864#M830481</link>
      <description>&lt;P&gt;=FirstSortedValue( aggr(sum(Amount),Monthnum), -Monthnum)&amp;nbsp; &amp;nbsp;try to keep the month in numbers&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 10:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Max-Month-Sales-in-table/m-p/1615864#M830481</guid>
      <dc:creator>sugathirajkumar</dc:creator>
      <dc:date>2019-08-23T10:12:23Z</dc:date>
    </item>
  </channel>
</rss>

