<?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: Sum Value Based on Max/Min Period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186992#M383958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply Stefan but none of those worked for me.I can guarantee there are not multiple records per company per month. Note that I have transitioned from FiscalPeriod to MonthDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had success only with below to get the min or max date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I somehow have to work this into a set analysis expression, I took a crack at it with no luck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({&amp;lt; MonthDate= {'$(= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like this is a pretty basic ask, so I dont know why I am struggling so much. You understand what I am trying to do - I just want the earliest Sales amount per company and the latest Sales amount so I can compare. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 22:58:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-16T22:58:05Z</dc:date>
    <item>
      <title>Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186987#M383953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;I have built the straight table at the bottom of my message. What I would like to do, is get the MIN FISCAL PERIOD sum(Sales) per COMPANY and the MAX FISCAL PERIOD sum(Sales) per Company. This would allow me to see if companies are growing or not. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So final product would look some like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Company&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Initial&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Latest&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Growth&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Adventure Works&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$1500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ice Cream Store&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(70%)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dog Store&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$3000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 306px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="102"&gt;Company&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;Fiscal Period&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;sum(Sales)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;$395,387&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Oct 2010&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Nov 2010&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Dec 2010&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jan 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Feb 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Mar 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Apr 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;May 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jun 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jul 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Aug 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Sep 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Oct 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Nov 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Dec 2011&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jan 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Feb 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Mar 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Apr 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;May 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jun 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Jul 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Aug 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Sep 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Oct 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Nov 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Adventure Works&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;Dec 2012&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$1,500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186987#M383953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-16T21:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186988#M383954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached&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/137775_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186988#M383954</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T21:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186989#M383955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not showing anything when I try to apply to my qvw. Not sure what I am missing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186989#M383955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-16T21:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186990#M383956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've figured out how to get the earliest and latest dates per company. I have a straight table setup with Company as the only dimension and these two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate)&lt;/P&gt;&lt;P&gt;= max({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These get me the earliest dates of sale for each company but I would like the actual Sale VALUE that corresponds with these dates. Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 22:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186990#M383956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-16T22:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186991#M383957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you have multiple records for each company per month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(Aggr(Sum(Sales), Company,FiscalPeriod),Aggr(FiscalPeriod,Company,FiscalPeriod))&lt;/P&gt;&lt;P&gt;=FirstSortedValue(Aggr(Sum(Sales), Company,FiscalPeriod),-Aggr(FiscalPeriod,Company,FiscalPeriod))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr( If(FiscalPeriod = Min(Total&amp;lt;Company&amp;gt; FiscalPeriod),Sales), Company,FiscalPeriod))&lt;/P&gt;&lt;P&gt;=Sum(Aggr( If(FiscalPeriod = Max(Total&amp;lt;Company&amp;gt; FiscalPeriod),Sales), Company,FiscalPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 22:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186991#M383957</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T22:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186992#M383958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply Stefan but none of those worked for me.I can guarantee there are not multiple records per company per month. Note that I have transitioned from FiscalPeriod to MonthDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had success only with below to get the min or max date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I somehow have to work this into a set analysis expression, I took a crack at it with no luck &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({&amp;lt; MonthDate= {'$(= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like this is a pretty basic ask, so I dont know why I am struggling so much. You understand what I am trying to do - I just want the earliest Sales amount per company and the latest Sales amount so I can compare. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 22:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186992#M383958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-16T22:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Based on Max/Min Period</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186993#M383959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny's solution worked for your sample records, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference to your real data? Can you describe your data a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add the Sales value set expression filter to both FirstSortedValue({&amp;lt;...&amp;gt;} .. ) and also to the second solution (just add it to every aggregation function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Modifying Sunny's QVW and expressions:&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&lt;STRONG&gt;{&amp;lt;Sales ={"&amp;gt;0"} &amp;gt;}&lt;/STRONG&gt; Sales, FiscalPeriod)&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&lt;STRONG&gt;{&amp;lt;Sales ={"&amp;gt;0"} &amp;gt;}&lt;/STRONG&gt; Sales, -FiscalPeriod)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and coming back to your approach:&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;= sum({&amp;lt; MonthDate= {'$(= min({&amp;lt; Sales = {"&amp;gt; 0 "}&amp;gt;} MonthDate))'}&amp;gt;}Sales)&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;Set Analysis and Dollar sign expansion is only evaluated once per chart, not per dimension line, so this will not determine the min MonthDate (with Sales &amp;gt;0)&lt;EM&gt; per Company, &lt;/EM&gt;it will filter on the overall minimum MonthDate (and you may need to double check the format of the MonthDate modifier value:&lt;/SPAN&gt;&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;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 23:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Based-on-Max-Min-Period/m-p/1186993#M383959</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T23:19:44Z</dc:date>
    </item>
  </channel>
</rss>

