<?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 Max(total Period) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-total-Period/m-p/217136#M70381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you tried using the function firstsortedvalue? Something like this might work:&lt;BR /&gt;=firstsortedvalue(PeriodName, -Period)&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 10:28:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-12T10:28:22Z</dc:date>
    <item>
      <title>Max(total Period)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-total-Period/m-p/217135#M70380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 expressions for calculating sales&lt;/P&gt;&lt;P&gt;- one express sums the total sales of all periods selected: Sum(Sales)&lt;/P&gt;&lt;P&gt;- the other gives you just the total for the most recent period in the range of periods selected: sum(if(max(total Period) = Period,Sales))&lt;/P&gt;&lt;P&gt;They work fine and I want the second expression to have a custom name so that when the period range is selected the name includes the name of the latest period.&lt;/P&gt;&lt;P&gt;Our periods are numbers e.g. 11101 is July 2010 which is the first period in FY11, 11102 is August 2010, etc&lt;/P&gt;&lt;P&gt;the names for these numbers are on a list.&lt;/P&gt;&lt;P&gt;When I do the name formula I can get the period number but not the period name e.g. = max(total PeriodName) doesnt work but =max(total Period) will return a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 02:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-total-Period/m-p/217135#M70380</guid>
      <dc:creator />
      <dc:date>2010-07-08T02:48:27Z</dc:date>
    </item>
    <item>
      <title>Max(total Period)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-total-Period/m-p/217136#M70381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you tried using the function firstsortedvalue? Something like this might work:&lt;BR /&gt;=firstsortedvalue(PeriodName, -Period)&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-total-Period/m-p/217136#M70381</guid>
      <dc:creator />
      <dc:date>2010-07-12T10:28:22Z</dc:date>
    </item>
  </channel>
</rss>

