<?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: How to find next value of the field at the script level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518157#M437220</link>
    <description>Got it. This is perfect. Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 07 Dec 2018 18:14:59 GMT</pubDate>
    <dc:creator>farheenayesha</dc:creator>
    <dc:date>2018-12-07T18:14:59Z</dc:date>
    <item>
      <title>How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518032#M437202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please help to find next value of the field at the script level. in the below table 4th July is an holiday and hence i want the same value as the next row that is 3 not as 2. Please help me to get the next value from the field for the holidays.&lt;/P&gt;&lt;P&gt;Nth day by Month_CY as 3 for 7/4/2018&lt;/P&gt;&lt;P&gt;Nth day by Qtr_CY as 3 for 7/4/2018&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nth day by Year_CY as 130&amp;nbsp; for 7/4/2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 825px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1813i0826D28351354466/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 14:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518032#M437202</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2018-12-07T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518072#M437208</link>
      <description>&lt;P&gt;Try this at the end of the load&lt;/P&gt;&lt;PRE&gt;FinalWeekBased445:
LOAD *,
	 If(MonthStart = Previous(MonthStart),
	 	If(HolidayFlag = 0, [Nth Day by Month_CY], Peek('Nth Day by Month_CY_Temp')), [Nth Day by Month_CY]) as [Nth Day by Month_CY_Temp],
	 If(QuarterStart = Previous(QuarterStart),
	 	If(HolidayFlag = 0, [Nth Day by Qtr_CY], Peek('Nth Day by Qtr_CY_Temp')), [Nth Day by Month_CY]) as [Nth Day by Qtr_CY_Temp],
	 If(YearStart = Previous(YearStart),
	 	If(HolidayFlag = 0, [Nth Day by Yr_CY], Peek('Nth Day by Yr_CY_Temp')), [Nth Day by Month_CY]) as [Nth Day by Yr_CY_Temp]
Resident WeekBased445
Order By [Invoice Date] desc;

DROP Table WeekBased445;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1815iA82B437D997334DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 15:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518072#M437208</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-07T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518131#M437217</link>
      <description>You are Genius Sunny!! Thank you so much.</description>
      <pubDate>Fri, 07 Dec 2018 17:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518131#M437217</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2018-12-07T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518141#M437218</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Just wanted to understand, why NTh_Qrt_CY_Temp and&amp;nbsp;&lt;SPAN&gt;NTh_YR_CY_Temp are showing as 25 for Sat and Sun at the end. Please find the snapshot below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1828i6301F612432754A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1827iFE3EAF4B45189335/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 18:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518141#M437218</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2018-12-07T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518146#M437219</link>
      <description>&lt;P&gt;Because of a typo that I made&lt;/P&gt;&lt;PRE&gt;FinalWeekBased445:
LOAD *,
	 If(MonthStart = Previous(MonthStart),
	 	If(HolidayFlag = 0, [Nth Day by Month_CY], Peek('Nth Day by Month_CY_Temp')), [Nth Day by Month_CY]) as [Nth Day by Month_CY_Temp],
	 If(QuarterStart = Previous(QuarterStart),
	 	If(HolidayFlag = 0, [Nth Day by Qtr_CY], Peek('Nth Day by Qtr_CY_Temp')), &lt;FONT color="#FF0000"&gt;[Nth Day by Qtr_CY]&lt;/FONT&gt;) as [Nth Day by Qtr_CY_Temp],
	 If(YearStart = Previous(YearStart),
	 	If(HolidayFlag = 0, [Nth Day by Yr_CY], Peek('Nth Day by Yr_CY_Temp')), &lt;FONT color="#FF0000"&gt;[Nth Day by Yr_CY]&lt;/FONT&gt;) as [Nth Day by Yr_CY_Temp]
Resident WeekBased445
Order By [Invoice Date] desc;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1832iCD02E575F12EC582/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 18:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518146#M437219</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-07T18:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find next value of the field at the script level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518157#M437220</link>
      <description>Got it. This is perfect. Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 07 Dec 2018 18:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-next-value-of-the-field-at-the-script-level/m-p/1518157#M437220</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2018-12-07T18:14:59Z</dc:date>
    </item>
  </channel>
</rss>

