<?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 Clause with &amp;gt; and &amp;lt; in Resident Load in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822979#M67504</link>
    <description>&lt;P&gt;I think I would load the data without this where-condition. If the dataset is rather large and runs too long for multiple testing I would probably filter manually on something else - maybe some values from the H_Group. And then I would look on the data within a table-box and some list-boxes how the data look like and if their associations are like I expect them.&lt;/P&gt;&lt;P&gt;This must not be done completely against the whole script else uncommenting some parts or using exit scripts; to break the loadings to certain point and then to check the results. Often you will find with such an approach any unexpected data/results which lead to&amp;nbsp;consequential errors. If it's more complex it's sometimes also helpful to load the origin data-logic and also keep the inbetween-steps of loadings by qualifying them like:&lt;/P&gt;&lt;P&gt;qualify *; x: load * resident Table; unqualify *;&lt;/P&gt;&lt;P&gt;so that you could check each record/transforming-step through the whole ETL process.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 08:26:10 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-07-19T08:26:10Z</dc:date>
    <item>
      <title>Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822398#M67433</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am experiencing an issue with the where clause in a resident load. I noticed that Qlik Sense is not taking into account what is written in the where clause. I am copying an example below:&lt;/P&gt;&lt;P&gt;History7Days:&lt;BR /&gt;LOAD&lt;BR /&gt;H_DATE&lt;BR /&gt;, H_Weeks&lt;BR /&gt;, H_Group&lt;BR /&gt;, H_Employee&lt;BR /&gt;, Count(DISTINCT H_ID) as H_DKey_7days&lt;BR /&gt;&lt;BR /&gt;Resident H_History&lt;BR /&gt;WHERE (H_DayNumber&amp;gt;= 0) And (H_Days &amp;lt; - 7)&lt;BR /&gt;GROUP BY H_DATE,H_Weeks,H_Group,H_Employee;&lt;/P&gt;&lt;P&gt;Left Join(History7Days)&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;H_Weeks&lt;BR /&gt;, H_Group&lt;BR /&gt;, H_Employee&lt;BR /&gt;, Avg(H_DKey_7days) as H_DKey_7days_Avg&lt;/P&gt;&lt;P&gt;Resident History7Days&lt;BR /&gt;GROUP BY H_Weeks,H_Group,H_Employee;&lt;/P&gt;&lt;P&gt;Left Join(H_History)&lt;BR /&gt;LOAD * Resident History7Days;&lt;/P&gt;&lt;P&gt;DROP TABLE History7Days;&lt;/P&gt;&lt;P&gt;After this in the result I see that&amp;nbsp;H_DKey_7days has not taken into account what I wrote in the script (WHERE (H_DayNumber&amp;gt;= 0) And (H_Days &amp;lt; - 7))&lt;/P&gt;&lt;P&gt;I tried to write the where clause in the below ways and it didn't work:&lt;/P&gt;&lt;P&gt;WHERE H_DayNumber&amp;gt;= 0 And H_Days &amp;lt; - 7&lt;/P&gt;&lt;P&gt;WHERE H_DayNumber&amp;gt;= '0' And H_Days &amp;lt; '- 7'&lt;/P&gt;&lt;P&gt;Any ideas what I might be doing wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 13:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822398#M67433</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-07-15T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822433#M67434</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WHERE H_DayNumber &amp;gt;= 0 And H_Days &amp;lt; -7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Important is that both sides of the comparison are numeric values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 14:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822433#M67434</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-15T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822442#M67435</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I tried like this and it still doesn't work. I also made sure that the fields contain numeric values as I used the num() function in the main table...&lt;/P&gt;&lt;P&gt;Appreciate more thoughts on the matter...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 14:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822442#M67435</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-07-15T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822446#M67436</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/98650"&gt;@ShellyG&lt;/a&gt;&amp;nbsp; &lt;SPAN&gt;&amp;nbsp;can you share the full script for better understanding?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 14:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822446#M67436</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-15T14:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822493#M67438</link>
      <description>&lt;P&gt;Num() is a formatting-function but they wouldn't convert the value if it's a string else only returning NULL in such case. To convert a string you would need num&lt;STRONG&gt;#&lt;/STRONG&gt;() with the proper format-pattern.&lt;/P&gt;&lt;P&gt;Did you try your conditions separately and/or with different values? Maybe the queried values didn't exists or at least not in combination with the &lt;STRONG&gt;AND&lt;/STRONG&gt; operator between them.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822493#M67438</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-15T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822971#M67503</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thank you for the idea, Marcus,&amp;nbsp; I tried and it still doesn't work properly, but I am starting to think that the issue is not the where clause...&lt;BR /&gt;&lt;BR /&gt;I am attaching the script, so that you can check it. Let me know in case you want me to clarify something.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shelly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 08:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822971#M67503</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-07-19T08:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with &gt; and &lt; in Resident Load</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822979#M67504</link>
      <description>&lt;P&gt;I think I would load the data without this where-condition. If the dataset is rather large and runs too long for multiple testing I would probably filter manually on something else - maybe some values from the H_Group. And then I would look on the data within a table-box and some list-boxes how the data look like and if their associations are like I expect them.&lt;/P&gt;&lt;P&gt;This must not be done completely against the whole script else uncommenting some parts or using exit scripts; to break the loadings to certain point and then to check the results. Often you will find with such an approach any unexpected data/results which lead to&amp;nbsp;consequential errors. If it's more complex it's sometimes also helpful to load the origin data-logic and also keep the inbetween-steps of loadings by qualifying them like:&lt;/P&gt;&lt;P&gt;qualify *; x: load * resident Table; unqualify *;&lt;/P&gt;&lt;P&gt;so that you could check each record/transforming-step through the whole ETL process.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 08:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-with-gt-and-lt-in-Resident-Load/m-p/1822979#M67504</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-19T08:26:10Z</dc:date>
    </item>
  </channel>
</rss>

