<?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 Condition WHERE after Joining 2 QVDs in Data Load Editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059014#M86935</link>
    <description>&lt;P&gt;I have joined 2 QVDs , and then loaded a new Table "Calculated_Table" where after the join i am substracting 2 dates&lt;/P&gt;
&lt;P&gt;Any idea why is not allowing me to put a WHERE condition in the "Calculated Table" after the IF statement ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PO_RECEIVED_ORIGIN:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;CUSTOMER_NAME as PO_RECEIVED_ORIGIN_CustomerName,&lt;BR /&gt;VENDOR_NAME as PO_RECEIVED_ORIGIN_VendorName,&lt;BR /&gt;CONSIGNEE_NAME as PO_RECEIVED_ORIGIN_ConsigneeName,&lt;BR /&gt;PO_DATE as PO_RECEIVED_ORIGIN_PODate,&lt;BR /&gt;PO_NUMBER as PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;MODE_OF_TRANSPORT_DESC as PO_RECEIEVD_ORIGIN_Mode,&lt;BR /&gt;ADDITIONAL_DATE_1 as PO_RECEIVED_ORIGIN_ETA&lt;/P&gt;
&lt;P&gt;FROM [QVD1]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;INNER JOIN (PO_RECEIVED_ORIGIN)&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;STATUS_CODE as STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_DESC as STATUS_RECEIVED_ORIGIN_StatusDesc,&lt;BR /&gt;STATUS_DATE as STATUS_RECEIVED_ORIGIN_StatusDate&lt;BR /&gt;&lt;BR /&gt;FROM [QVD2]&lt;BR /&gt;(qvd)&lt;BR /&gt;where "STATUS_CODE"='TAL03';&lt;/P&gt;
&lt;P&gt;Calculated_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;PO_RECEIVED_ORIGIN_ETA,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusDate,&lt;BR /&gt;IF(ROUND(PO_RECEIVED_ORIGIN_ETA - STATUS_RECEIVED_ORIGIN_StatusDate)&amp;lt;=7,'At Risk','Not At Risk') as Flag&lt;/P&gt;
&lt;P&gt;where FLAG = 'At Risk'; &lt;EM&gt;##this line breaks the code , have tried to put it after resident, after drop table nothing works&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Resident PO_RECEIVED_ORIGIN;&lt;BR /&gt;Drop Table PO_RECEIVED_ORIGIN;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 09:13:52 GMT</pubDate>
    <dc:creator>Sergiu</dc:creator>
    <dc:date>2023-04-11T09:13:52Z</dc:date>
    <item>
      <title>Condition WHERE after Joining 2 QVDs in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059014#M86935</link>
      <description>&lt;P&gt;I have joined 2 QVDs , and then loaded a new Table "Calculated_Table" where after the join i am substracting 2 dates&lt;/P&gt;
&lt;P&gt;Any idea why is not allowing me to put a WHERE condition in the "Calculated Table" after the IF statement ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PO_RECEIVED_ORIGIN:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;CUSTOMER_NAME as PO_RECEIVED_ORIGIN_CustomerName,&lt;BR /&gt;VENDOR_NAME as PO_RECEIVED_ORIGIN_VendorName,&lt;BR /&gt;CONSIGNEE_NAME as PO_RECEIVED_ORIGIN_ConsigneeName,&lt;BR /&gt;PO_DATE as PO_RECEIVED_ORIGIN_PODate,&lt;BR /&gt;PO_NUMBER as PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;MODE_OF_TRANSPORT_DESC as PO_RECEIEVD_ORIGIN_Mode,&lt;BR /&gt;ADDITIONAL_DATE_1 as PO_RECEIVED_ORIGIN_ETA&lt;/P&gt;
&lt;P&gt;FROM [QVD1]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;INNER JOIN (PO_RECEIVED_ORIGIN)&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;STATUS_CODE as STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_DESC as STATUS_RECEIVED_ORIGIN_StatusDesc,&lt;BR /&gt;STATUS_DATE as STATUS_RECEIVED_ORIGIN_StatusDate&lt;BR /&gt;&lt;BR /&gt;FROM [QVD2]&lt;BR /&gt;(qvd)&lt;BR /&gt;where "STATUS_CODE"='TAL03';&lt;/P&gt;
&lt;P&gt;Calculated_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;PO_RECEIVED_ORIGIN_ETA,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusDate,&lt;BR /&gt;IF(ROUND(PO_RECEIVED_ORIGIN_ETA - STATUS_RECEIVED_ORIGIN_StatusDate)&amp;lt;=7,'At Risk','Not At Risk') as Flag&lt;/P&gt;
&lt;P&gt;where FLAG = 'At Risk'; &lt;EM&gt;##this line breaks the code , have tried to put it after resident, after drop table nothing works&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Resident PO_RECEIVED_ORIGIN;&lt;BR /&gt;Drop Table PO_RECEIVED_ORIGIN;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059014#M86935</guid>
      <dc:creator>Sergiu</dc:creator>
      <dc:date>2023-04-11T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Condition WHERE after Joining 2 QVDs in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059023#M86936</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;LOAD * &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Where FLAG = 'At Risk';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Calculated_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;PO_RECEIVED_ORIGIN_ETA,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusDate,&lt;BR /&gt;IF(ROUND(PO_RECEIVED_ORIGIN_ETA - STATUS_RECEIVED_ORIGIN_StatusDate)&amp;lt;=7,'At Risk','Not At Risk') as Flag&lt;/P&gt;
&lt;P&gt;Resident PO_RECEIVED_ORIGIN;&lt;/P&gt;
&lt;P&gt;Drop Table PO_RECEIVED_ORIGIN;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059023#M86936</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-11T09:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Condition WHERE after Joining 2 QVDs in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059034#M86937</link>
      <description>&lt;P&gt;Thanks! but it cannot recognize the calculated field FLAG&lt;/P&gt;
&lt;P&gt;This is the error while loading the data :&lt;/P&gt;
&lt;DIV class="headline edc_error"&gt;"The following error occurred:&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;Field 'Flag' not found"&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059034#M86937</guid>
      <dc:creator>Sergiu</dc:creator>
      <dc:date>2023-04-11T09:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Condition WHERE after Joining 2 QVDs in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059038#M86938</link>
      <description>&lt;DIV id="paraphrase-output-bar" style="display: block; padding-right: 25px;"&gt;Try again with minor changes.&lt;/DIV&gt;
&lt;DIV style="display: block; padding-right: 25px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;DIV id="bodyDisplay_1376abc6a151df5_ae975" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;LOAD * &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Where FLAG = 'At Risk';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Calculated_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;FCM_PO_OBJECT_ID,&lt;BR /&gt;PO_RECEIVED_ORIGIN_PONumber,&lt;BR /&gt;PO_RECEIVED_ORIGIN_ETA,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusCode,&lt;BR /&gt;STATUS_RECEIVED_ORIGIN_StatusDate,&lt;BR /&gt;IF(ROUND(PO_RECEIVED_ORIGIN_ETA - STATUS_RECEIVED_ORIGIN_StatusDate)&amp;lt;=7,'At Risk','Not At Risk') as Flag&lt;/P&gt;
&lt;P&gt;Resident PO_RECEIVED_ORIGIN;&lt;/P&gt;
&lt;P&gt;Drop Table PO_RECEIVED_ORIGIN;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059038#M86938</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-11T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Condition WHERE after Joining 2 QVDs in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059121#M86948</link>
      <description>&lt;P&gt;Thanks a lot ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 12:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Condition-WHERE-after-Joining-2-QVDs-in-Data-Load-Editor/m-p/2059121#M86948</guid>
      <dc:creator>Sergiu</dc:creator>
      <dc:date>2023-04-11T12:20:30Z</dc:date>
    </item>
  </channel>
</rss>

