<?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: Max month data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977297#M528006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to show sum(sales) by&amp;nbsp; max mnth in exp and in dimension Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 07:47:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-18T07:47:21Z</dc:date>
    <item>
      <title>Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977295#M528004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my excel I want to display sales of A or B by max month &lt;/P&gt;&lt;P&gt;here for A sales by maxmnth is 10 , but for B sales by max month is 70.&lt;/P&gt;&lt;P&gt;I am using sum({&amp;lt;Month={'$(vMaxmnth)'&amp;gt;}Sales) in exp and in dimension it is Customer.&lt;/P&gt;&lt;P&gt;But for B it is working but for A it is not working.&lt;/P&gt;&lt;P&gt;Any suggestion on this? If multiple mnth entetred for customer it should pick max mnth sales but if only one mnth entered it should take that particular row.&lt;/P&gt;&lt;P&gt;Can you help me on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977295#M528004</guid>
      <dc:creator />
      <dc:date>2015-09-18T07:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977296#M528005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell still more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harshitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977296#M528005</guid>
      <dc:creator />
      <dc:date>2015-09-18T07:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977297#M528006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to show sum(sales) by&amp;nbsp; max mnth in exp and in dimension Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977297#M528006</guid>
      <dc:creator />
      <dc:date>2015-09-18T07:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977298#M528007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=max(Year))},Month={$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;}Month))}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;Try out with this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977298#M528007</guid>
      <dc:creator />
      <dc:date>2015-09-18T07:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977299#M528008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried with the above expression is it working fine or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harshitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 08:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977299#M528008</guid>
      <dc:creator />
      <dc:date>2015-09-18T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977300#M528009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;i already hav year month calculated, so i am using that in my expression i am trying sum({&amp;lt;Month={'$(vMaxmnth)'&amp;gt;}Sales) and in dimention customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work for all the cases&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 08:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977300#M528009</guid>
      <dc:creator />
      <dc:date>2015-09-18T08:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977301#M528010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want his:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99316_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;then use the follwoing Expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;while Customer and Month are Dimensions&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 08:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977301#M528010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max month data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977302#M528011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set expression is evaluated once for the table, not once per row, so for A, the expression reports A in August, which is zero&amp;nbsp; as there is no data for A in August.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best solution is to add a &lt;SPAN style="font-size: 13.3333px;"&gt;last sales &lt;/SPAN&gt;flag during reload. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Month, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Customer,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Sales,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Customer,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Max(Month) As Month,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 As LastSale&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By Customer;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your expression becomes:&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;EM&gt;=Sum({&amp;lt;LastSale={1}&amp;gt;} Sales) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 08:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-month-data/m-p/977302#M528011</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-18T08:07:50Z</dc:date>
    </item>
  </channel>
</rss>

