<?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: Find the Corresponding Date to Max Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790403#M471242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a search condition in Set analysis to fund the Week where the sum(ActSales) is the same week as the week with the maximum ActSales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(&amp;nbsp; {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;={"=Max( total aggr( sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActSales&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;))=aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActSales&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;)"}&amp;gt;}&amp;nbsp; DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 13:02:18 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-03-25T13:02:18Z</dc:date>
    <item>
      <title>Find the Corresponding Date to Max Value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790402#M471241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to find the week in which the max sales occurred. The date is needed to feed back into another formula to show the daily trend in the week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the max sales number but have hit a bump in trying to now return the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ActivityWeek the amount is associated with.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(AGGR(sum(ActSales), ActivityWeek))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 12:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790402#M471241</guid>
      <dc:creator />
      <dc:date>2015-03-25T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Corresponding Date to Max Value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790403#M471242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a search condition in Set analysis to fund the Week where the sum(ActSales) is the same week as the week with the maximum ActSales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(&amp;nbsp; {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;={"=Max( total aggr( sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActSales&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;))=aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActSales&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;)"}&amp;gt;}&amp;nbsp; DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ActivityWeek&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790403#M471242</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-25T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Corresponding Date to Max Value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790404#M471243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the clear response. This is a great approach.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790404#M471243</guid>
      <dc:creator />
      <dc:date>2015-03-25T13:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Corresponding Date to Max Value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790405#M471244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ActivityWeek&lt;/SPAN&gt;,-&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ActSales&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;ActivityWeek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;))&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790405#M471244</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-03-25T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Corresponding Date to Max Value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790406#M471245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So many ways to do the same. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-Corresponding-Date-to-Max-Value/m-p/790406#M471245</guid>
      <dc:creator />
      <dc:date>2015-03-25T13:17:10Z</dc:date>
    </item>
  </channel>
</rss>

