<?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 Sum and Percentage Diff Between Two Max Dates Within Range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378174#M31240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell I have 5 week ending dates as a dimension. From these 5 week ending dates (Friday) I want to select the latest 2 within the range and calculate the sum difference between them and also the percentage difference as two separate KPI's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had a look online at other topics but I'm finding it difficult to apply the logic to my specific example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 09:50:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-10T09:50:48Z</dc:date>
    <item>
      <title>Sum and Percentage Diff Between Two Max Dates Within Range</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378174#M31240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell I have 5 week ending dates as a dimension. From these 5 week ending dates (Friday) I want to select the latest 2 within the range and calculate the sum difference between them and also the percentage difference as two separate KPI's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had a look online at other topics but I'm finding it difficult to apply the logic to my specific example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378174#M31240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-10T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and Percentage Diff Between Two Max Dates Within Range</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378175#M31241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depending on how your data model looks, you should look into using FirstSortedValue to help identify the two dates that you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you could create a rank variable, then reference the rank variable in set analysis to isolate each one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378175#M31241</guid>
      <dc:creator>dan_sullivan</dc:creator>
      <dc:date>2017-08-10T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and Percentage Diff Between Two Max Dates Within Range</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378176#M31242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an update on what I managed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLW = floor(now()-num(weekday(now())))-3;&lt;/P&gt;&lt;P&gt;LET vLWW = floor(now()-num(weekday(now())))-10;&lt;/P&gt;&lt;P&gt;LET vLWWW = floor(now()-num(weekday(now())))-17;&lt;/P&gt;&lt;P&gt;LET vLWWWW = floor(now()-num(weekday(now())))-24;&lt;/P&gt;&lt;P&gt;LET vLYW = floor(addyears(now(),-1))-num(weekday(addyears(now(),-1)))-3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should get to the last 4 weeks worth of week ending dates and also the latest weeks last year equivalent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 09:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-and-Percentage-Diff-Between-Two-Max-Dates-Within-Range/m-p/1378176#M31242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T09:21:29Z</dc:date>
    </item>
  </channel>
</rss>

