<?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: Need to add values based on before two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63951#M779391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i agree. but i just want to know what is the field "total" you used inside peek function?&lt;/P&gt;&lt;P&gt;and also i need to get the addition of above two rows only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 18:19:56 GMT</pubDate>
    <dc:creator>praveenkumar_s</dc:creator>
    <dc:date>2018-04-05T18:19:56Z</dc:date>
    <item>
      <title>Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63944#M779384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have date and cost column. all i need is just one more field which consists of total cost for current day + last two days in load script.&lt;/P&gt;&lt;P&gt;Please find the attached screenshot below. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="source.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198612_source.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Please let me know in case of any clarifications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63944#M779384</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63945#M779385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangesum(sum(Cost),Above(Cost,1),Above(Cost,2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63945#M779385</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-05T17:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63946#M779386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Peek(Total)+Cost AS TOTAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63946#M779386</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2018-04-05T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63947#M779387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198638_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63947#M779387</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-05T17:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63948#M779388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. but i just want that in load script.&amp;nbsp; i want to add more field named total in load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63948#M779388</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-04-05T17:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63949#M779389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;Total you are referring inside peek function is the column i just want to create. &lt;/P&gt;&lt;P&gt;i want it in load script . so only i can generate charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63949#M779389</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-04-05T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63950#M779390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() is a script function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63950#M779390</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2018-04-05T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63951#M779391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i agree. but i just want to know what is the field "total" you used inside peek function?&lt;/P&gt;&lt;P&gt;and also i need to get the addition of above two rows only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63951#M779391</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-04-05T18:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63952#M779392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, ok...Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;Peek(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cost&lt;/SPAN&gt;,1)+&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;Peek(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;,2) AS TOTAL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63952#M779392</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2018-04-05T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63953#M779393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, rangesum(Cost, peek(Cost, -1), peek(Cost,-2)) as Total;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Date, Cost&lt;/P&gt;&lt;P&gt;2/2/2018 , 10&lt;/P&gt;&lt;P&gt;2/3/2018 , 20&lt;/P&gt;&lt;P&gt;2/4/2018 , 50&lt;/P&gt;&lt;P&gt;2/5/2018 , 60&lt;/P&gt;&lt;P&gt;2/6/2018 , 70&lt;/P&gt;&lt;P&gt;2/7/2018 , 20&lt;/P&gt;&lt;P&gt;2/8/2018 , 50&lt;/P&gt;&lt;P&gt;2/9/2018 , 60&lt;/P&gt;&lt;P&gt;2/10/2018 , 90&lt;/P&gt;&lt;P&gt;2/11/2018 , 15&lt;/P&gt;&lt;P&gt;2/12/2018 , 20&lt;/P&gt;&lt;P&gt;2/13/2018 , 25&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 19:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63953#M779393</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2018-04-05T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63954#M779395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this bro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F:load Date, Cost, rangesum(Cost,Peek(Cost) ,Peek(Cost,-2)) as Total&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 06:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63954#M779395</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-06T06:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63955#M779397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you've 3 answer using Peek(), just check one of then and mark the right answer pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63955#M779397</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2018-04-06T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63956#M779399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your continuous suggestion. finally i got that..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63956#M779399</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-04-09T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add values based on before two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63957#M779400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose if we want to add n date (eg- last 8 dates) means, how can we achieve that simply?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-add-values-based-on-before-two-dates/m-p/63957#M779400</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-04-09T15:39:51Z</dc:date>
    </item>
  </channel>
</rss>

