<?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 - One field or another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744430#M265773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could mark both them as correct but again S and Rob much appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 20:04:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-04T20:04:30Z</dc:date>
    <item>
      <title>Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744423#M265766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a table with fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EmployeeName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales.CurrentYr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales.PrevYr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to find Max of Sales by EmployeeName and Product if they exist under Sales.CurrentYr column otherwise find Max from Sales.PrevYr filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to do in load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744423#M265766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T15:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744424#M265767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Group By statement to find the max for individual columns (Sales.CurrentYr and Sales.PrevYr) may be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD EmployeeName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales.CurrentYr) as MaxSales.CurrentYr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales.PrevYr) as MaxSales.PrevYr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident yourTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By EmployeeName, Product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use a if Statement like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(not IsNull(MaxSales.CurrentYr), MaxSales.CurrentYr, MaxSales.PrevYr) as MaxSales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744424#M265767</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-04T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744425#M265768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it may be simpler using alt()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD EmployeeName&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(alt(Sales.CurrentYr, &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Sales.PrevYr)) as MaxSales &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident yourTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group By EmployeeName, Product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;-Rob&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744425#M265768</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-03-04T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744426#M265769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right. This definitely is a simpler method of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 17:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744426#M265769</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-04T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744427#M265770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 18:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744427#M265770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744428#M265771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark something as correct to close the thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 19:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744428#M265771</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-03-04T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744429#M265772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark my answer as correct, Rob already have lot of points &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/mischief.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just kidding. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I agree with Rob. Mark one of the answers as correct answer so that other can benefit from this thread in the future.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 19:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744429#M265772</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-04T19:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max - One field or another</title>
      <link>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744430#M265773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could mark both them as correct but again S and Rob much appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 20:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-One-field-or-another/m-p/744430#M265773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T20:04:30Z</dc:date>
    </item>
  </channel>
</rss>

