<?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: Where and While? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912673#M986220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give it a try and let you know how it works. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 17:02:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-06T17:02:28Z</dc:date>
    <item>
      <title>Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912666#M986213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Community-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I&lt;STRONG&gt;s it possible to use a Where clause&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Task No]&lt;/P&gt;&lt;P&gt;[GL_Code]&lt;/P&gt;&lt;P&gt;[Schedule Start Date]&lt;/P&gt;&lt;P&gt;[Schedule End Date]&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element_Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Project_End_Date&amp;gt;= TODAY()&amp;nbsp; //only select schedule lines with end dates that haven't passed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT*&lt;/P&gt;&lt;P&gt;FROM APPS.ORACLE_TABLE_VIEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;in the same qlikview load as an interval/while loop?&lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;[Task No]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;[GL_Code]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;[Schedule Start Date]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;[Schedule End Date]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Element_Name&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Schedule Start Date]&lt;/SPAN&gt; + IterNo ()&amp;nbsp; as ReferenceDate&lt;/P&gt;&lt;P&gt;WHILE addmonths(monthstart(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Schedule Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;),IterNo()-1) &amp;lt;= "SCHEDULE_END_DATE";&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL SELECT*&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM APPS.ORACLE_TABLE_VIEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Either works fine on its own, but when I try to do both things, only one of the prefixes will show as active (blue).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Part of this is I can't for the life of me figure out how to extract data using a date limited filter in the Oracle SQL, despite some excellent posts on the community and on oracle date prefixes.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Thanks!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912666#M986213</guid>
      <dc:creator />
      <dc:date>2015-08-05T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912667#M986214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can use either While or Where in a load statement. But there's no reason why you can't use two preceding loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Task No]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[GL_Code]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Schedule Start Date]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Schedule End Date]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Element_Name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;[Schedule Start Date]&lt;/SPAN&gt; + IterNo ()&amp;nbsp; as ReferenceDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHILE addmonths(monthstart(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;[Schedule Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt; &lt;/SPAN&gt;),IterNo()-1) &amp;lt;= "SCHEDULE_END_DATE";&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD&amp;nbsp; * Where Project_End_Date&amp;gt;= TODAY();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT*&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM APPS.ORACLE_TABLE_VIEW&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or try something like this:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET vToday = num(today());&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ...stuff... WHILE .... ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT * &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM APPS.ORACLE_TABLE_VIEW&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE "Project_End_Date" &amp;gt;= $(vToday)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 06:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912667#M986214</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-06T06:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912668#M986215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below in Where clause of Query itself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM APPS.ORACLE_TABLE_VIEW&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Project_End_Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;STRONG&gt;trunc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;sysdate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 06:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912668#M986215</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-06T06:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912669#M986216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, Gysbert! I can't find the mark as correct answer button. But this is terrific. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912669#M986216</guid>
      <dc:creator />
      <dc:date>2015-08-06T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912670#M986217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912670#M986217</guid>
      <dc:creator />
      <dc:date>2015-08-06T13:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912671#M986218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, again Gysbert-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just realized something about the way our data is created/stored that makes my date loop above (which is now working, thank you!) very large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regarding &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Schedule Start Date]&lt;/SPAN&gt; + IterNo ()&amp;nbsp; as ReferenceDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHILE addmonths(monthstart(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;[Schedule Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt; &lt;/SPAN&gt;),IterNo()-1) &amp;lt;= "SCHEDULE_END_DATE";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally forgot that end dates default to the year 4712 (no I'm not kidding) if the user doesn't end date a schedule line. I have no control over that process, so I need to modify the above "while" statement&amp;nbsp; so that it only iterates through, say 12/31/2020?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 16:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912671#M986218</guid>
      <dc:creator />
      <dc:date>2015-08-06T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912672#M986219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE addmonths(monthstart([Schedule Start Date] ),IterNo()-1) &amp;lt;= &lt;STRONG&gt;rangemin(makedate(2020,12,31),"SCHEDULE_END_DATE")&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 16:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912672#M986219</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-06T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912673#M986220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give it a try and let you know how it works. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 17:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912673#M986220</guid>
      <dc:creator />
      <dc:date>2015-08-06T17:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where and While?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912674#M986221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally got to try this - worked like a charm! Thanks again, Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-and-While/m-p/912674#M986221</guid>
      <dc:creator />
      <dc:date>2015-08-14T18:04:44Z</dc:date>
    </item>
  </channel>
</rss>

