<?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 Which year has max sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019787#M345115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a line chart with month as dimension &lt;/P&gt;&lt;P&gt;i have monthly wise five year of data including current year.&lt;/P&gt;&lt;P&gt;requirement are:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; One line as&amp;nbsp; Current year&amp;nbsp; sales data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; And another line&amp;nbsp; as year which has max sales.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jan 2016 17:48:23 GMT</pubDate>
    <dc:creator>rajveersinghsisodiya</dc:creator>
    <dc:date>2016-01-31T17:48:23Z</dc:date>
    <item>
      <title>Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019787#M345115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a line chart with month as dimension &lt;/P&gt;&lt;P&gt;i have monthly wise five year of data including current year.&lt;/P&gt;&lt;P&gt;requirement are:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; One line as&amp;nbsp; Current year&amp;nbsp; sales data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; And another line&amp;nbsp; as year which has max sales.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 17:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019787#M345115</guid>
      <dc:creator>rajveersinghsisodiya</dc:creator>
      <dc:date>2016-01-31T17:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019788#M345116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max sales total on a given year or max sales on a month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 19:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019788#M345116</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-31T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019789#M345117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113109_Capture.PNG" style="height: 172px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 20:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019789#M345117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019790#M345118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simplify the set expression a bit using Rank() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year = {"=Rank(Sum(Sales))=1"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if the OP wants to find the year with max monthly sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year = p({&amp;lt;MonthYear = {"=Rank(Sum(Sales))=1"}&amp;gt;}) &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the modified version of Sunny's sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 20:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019790#M345118</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-31T20:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019791#M345119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ thank you so much ...:).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 14:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019791#M345119</guid>
      <dc:creator>rajveersinghsisodiya</dc:creator>
      <dc:date>2016-02-01T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019792#M345120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what were you looking for? The first solution or the second one. Just curious &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 14:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019792#M345120</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-01T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019793#M345121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i have used the expression given by SWUEHL .. i haven't open the example given by you...&amp;nbsp; because i am using personal edition &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 15:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019793#M345121</guid>
      <dc:creator>rajveersinghsisodiya</dc:creator>
      <dc:date>2016-02-01T15:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Which year has max sales</title>
      <link>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019794#M345122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 15:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-year-has-max-sales/m-p/1019794#M345122</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-01T15:24:18Z</dc:date>
    </item>
  </channel>
</rss>

