<?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: Aggr or FirstSortedValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280181#M622994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Aggr(FirstSortedValue({&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;} Aggr(Only(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Costs), Project, Date), -Aggr(Only(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Date), Project, Date)), Project))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 09:42:51 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-21T09:42:51Z</dc:date>
    <item>
      <title>Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280174#M622987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help.&lt;/P&gt;&lt;P&gt;I need to sum quantity according to the max date in the month:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153169_Screenshot_1.jpg" style="height: 231px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result:&lt;/P&gt;&lt;P&gt;Year month, Sum&lt;/P&gt;&lt;P&gt;2017-02, 3&lt;/P&gt;&lt;P&gt;2017-03, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280174#M622987</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2017-02-15T12:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280175#M622988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Aggr(Sum(Quantity), Date), -Date)&lt;/STRONG&gt;&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/153191_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280175#M622988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280176#M622989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;Sum (Aggr (Firstsortedvalue (quantity,-Date),Year Month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280176#M622989</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-15T12:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280177#M622990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how that would work in case we have two dimensions Year month, Product?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280177#M622990</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2017-02-15T12:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280178#M622991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to say without looking, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Aggr(Sum(Quantity), Product, Date), -Aggr(Date, Product, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280178#M622991</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280179#M622992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks once again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 13:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280179#M622992</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2017-02-15T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280180#M622993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for your suggestion: it works very well! Instead, I have a problem when I try to apply the expression to calculate the previous year value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, it seems that the function FirstSortedValue is not able to consider a set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'&amp;lt;=$(=max(Date)-100)&amp;gt;=$(=min(Date)-100)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(Costs&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;),-&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The date format is YYYYMM (i.e. 201701)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I wrong? How can I manage this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 09:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280180#M622993</guid>
      <dc:creator />
      <dc:date>2017-03-21T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280181#M622994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Aggr(FirstSortedValue({&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;} Aggr(Only(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Costs), Project, Date), -Aggr(Only(&lt;STRONG style="font-size: 13.3333px;"&gt;{&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; Date(Max(Date)-100, 'YYYYMM') &amp;amp; '&amp;gt;=' &amp;amp; Date(Min(Date)-100, 'YYYYMM'))"}&amp;gt;}&lt;/STRONG&gt; Date), Project, Date)), Project))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 09:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280181#M622994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-21T09:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280182#M622995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented this formula because yours seems not to work in my dashboard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={'&amp;lt;=$(=max(Date)-100)&amp;gt;=$(=min(Date)-100)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={'&amp;lt;=$(=max(Date)-100)&amp;gt;=$(=min(Date)-100)'}&amp;gt;} Costs&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;),-&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={'&amp;lt;=$(=max(Date)-100)&amp;gt;=$(=min(Date)-100)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Project&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Arial',sans-serif; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: IT; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This one is fine on a local test qvw with a limited amount of data.&lt;/P&gt;&lt;P&gt;My current problem is to insert into this expression the sum function regarding Costs while keeping the set analysis for the previous year.&lt;/P&gt;&lt;P&gt;Do you have any idea on that? &lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1280182#M622995</guid>
      <dc:creator />
      <dc:date>2017-03-21T17:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1719844#M622996</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I need to calculate as of date figure for respective years and for previous years. For current years, the formula below is working:&lt;/P&gt;&lt;P&gt;FirstSortedValue(Aggr(Sum([Amount]), [Period]), -Aggr([Period], [Period]))&lt;/P&gt;&lt;P&gt;But I am struggling to calculate prior year figures using same. I have already tried for a week now but with no success. Can you help?&lt;/P&gt;&lt;P&gt;Let me know if more information is required.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 23:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-FirstSortedValue/m-p/1719844#M622996</guid>
      <dc:creator>writetoprithvi</dc:creator>
      <dc:date>2020-06-17T23:40:00Z</dc:date>
    </item>
  </channel>
</rss>

