<?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: Data Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547414#M745818</link>
    <description>&lt;P&gt;you ahve to group all the field listed&lt;/P&gt;&lt;P&gt;another way is to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets sat you want max of e grouped by a so do this&lt;/P&gt;&lt;PRE&gt;table:

load a,b,c,d,e from table;

left join

load a,max(e) as max_e

resident table&lt;BR /&gt;group by a;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 11:04:51 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2019-02-21T11:04:51Z</dc:date>
    <item>
      <title>Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547294#M745813</link>
      <description>&lt;P&gt;I have a data set that is pulling many different reports into one set. However, I only want to show the data that is from the most recent report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of restricting the data in the script to only show data that is from the most recent REPORT_DATE field? I can't hard code it to the date itself because this gets updated monthly.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547294#M745813</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2024-11-16T04:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547310#M745814</link>
      <description>&lt;P&gt;1: get the max of date in a variable v_date max&lt;/P&gt;&lt;P&gt;2: In resident load use the noconacatenate&amp;nbsp; where clasue to restrict the data.&lt;/P&gt;&lt;P&gt;3: Keep the resident table and delete the original table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 09:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547310#M745814</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547389#M745815</link>
      <description>&lt;P&gt;Do you have any idea why this Max Date field would be invalid?&lt;/P&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="max.PNG" style="width: 236px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6487i5CAA9BFB4EDC4607/image-size/large?v=v2&amp;amp;px=999" role="button" title="max.PNG" alt="max.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="max2.PNG" style="width: 869px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6488iB8054333A2637817/image-size/large?v=v2&amp;amp;px=999" role="button" title="max2.PNG" alt="max2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547389#M745815</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547396#M745816</link>
      <description>&lt;P&gt;you need to use group by when you use any aggregation function like max,sum count etc.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547396#M745816</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547411#M745817</link>
      <description>&lt;P&gt;Does it matter which fields I group?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547411#M745817</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T11:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547414#M745818</link>
      <description>&lt;P&gt;you ahve to group all the field listed&lt;/P&gt;&lt;P&gt;another way is to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets sat you want max of e grouped by a so do this&lt;/P&gt;&lt;PRE&gt;table:

load a,b,c,d,e from table;

left join

load a,max(e) as max_e

resident table&lt;BR /&gt;group by a;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547414#M745818</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T11:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547434#M745819</link>
      <description>&lt;P&gt;Temp:&lt;BR /&gt;LOAD ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;BR /&gt;FROM&lt;BR /&gt;ItemHistoricUsageReport.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;Left Join (Temp)&lt;BR /&gt;Load&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;max(REPORT_DATE) AS MAXDATE&lt;BR /&gt;Resident Temp&lt;BR /&gt;Group by PERIOD_INFO;&lt;/P&gt;&lt;P&gt;Let vMaxDate = peek('MAXDATE');&lt;/P&gt;&lt;P&gt;Report:&lt;BR /&gt;NoConcatenate LOAD&lt;BR /&gt;ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RESIDENT Temp&lt;BR /&gt;WHERE REPORT_DATE = $(vMaxDate);&lt;BR /&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I've put but as I drop Temp, no data is displayed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547434#M745819</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T11:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547445#M745820</link>
      <description>&lt;PRE&gt;Temp:
LOAD ORGANIZATION_ID,
INVENTORY_ITEM_ID,
PERIOD_INFO,
REPORT_DATE,
PART_NUMBER,
SOURCING_SUPPLIER,
USE_DESC_TYPE
FROM
ItemHistoricUsageReport.qvd
(qvd);


Load
PERIOD_INFO,
max(REPORT_DATE) AS MAXDATE
Resident Temp
Group by PERIOD_INFO;

Let vMaxDate = peek('MAXDATE');
NoConcatenate 

Report:
LOAD
ORGANIZATION_ID,
INVENTORY_ITEM_ID,
PERIOD_INFO,
REPORT_DATE,
PART_NUMBER,
SOURCING_SUPPLIER,
USE_DESC_TYPE


RESIDENT Temp
WHERE REPORT_DATE = $(vMaxDate);
DROP TABLE Temp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547445#M745820</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547451#M745821</link>
      <description>&lt;P&gt;That returned no data anywhere but in PERIOD_INFO&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nodata.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6493iDC069FA8491F4AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="nodata.PNG" alt="nodata.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547451#M745821</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547454#M745822</link>
      <description>&lt;PRE&gt;Temp:
LOAD ORGANIZATION_ID,
INVENTORY_ITEM_ID,
PERIOD_INFO,
REPORT_DATE,
PART_NUMBER,
SOURCING_SUPPLIER,
USE_DESC_TYPE
FROM
ItemHistoricUsageReport.qvd
(qvd);


Load
PERIOD_INFO,
max(REPORT_DATE) AS MAXDATE
Resident Temp
Group by PERIOD_INFO
order by REPORT_DATE ;

Let vMaxDate = peek('MAXDATE');
NoConcatenate 

Report:
LOAD
ORGANIZATION_ID,
INVENTORY_ITEM_ID,
PERIOD_INFO,
REPORT_DATE,
PART_NUMBER,
SOURCING_SUPPLIER,
USE_DESC_TYPE


RESIDENT Temp
WHERE REPORT_DATE = $(vMaxDate);
DROP TABLE Temp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547454#M745822</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T11:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547464#M745823</link>
      <description>&lt;P&gt;Still having the same issue with only PERIOD_INFO showing data&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547464#M745823</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T12:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547527#M745824</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;BR /&gt;FROM&lt;BR /&gt;ItemHistoricUsageReport.qvd&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;Max_Date:&lt;BR /&gt;Load&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;LastValue(REPORT_DATE) AS MAX_DATE&lt;BR /&gt;Resident Temp&lt;BR /&gt;Group by PERIOD_INFO&lt;BR /&gt;order by REPORT_DATE asc ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Report:&lt;BR /&gt;LOAD&lt;BR /&gt;ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;BR /&gt;RESIDENT Temp&lt;BR /&gt;WHERE Exist(MAX_DATE,REPORT_DATE);&lt;BR /&gt;&lt;BR /&gt;DROP TABLES Temp,MAX_DATE;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ACC</description>
      <pubDate>Thu, 21 Feb 2019 13:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547527#M745824</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547576#M745826</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the WHERE Exist to WHERE Exists and amended the drop table at the bottom to say Max_Date rather than MAX_DATE, but when it is reloaded, the data remains the same and I see all REPORT_DATE dates &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547576#M745826</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547644#M745827</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm sorry for the syntaxis error, try with this:&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;BR /&gt;FROM&lt;BR /&gt;ItemHistoricUsageReport.qvd&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;Table_Max_Date:&lt;BR /&gt;Load&lt;BR /&gt;Max(REPORT_DATE) AS MAX_DATE&lt;BR /&gt;Resident Temp;&lt;BR /&gt;&lt;BR /&gt;LET vMaxDate=num(Peek('MAX_DATE',0,'Table_Max_Date'));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Report:&lt;BR /&gt;LOAD&lt;BR /&gt;ORGANIZATION_ID,&lt;BR /&gt;INVENTORY_ITEM_ID,&lt;BR /&gt;PERIOD_INFO,&lt;BR /&gt;REPORT_DATE,&lt;BR /&gt;PART_NUMBER,&lt;BR /&gt;SOURCING_SUPPLIER,&lt;BR /&gt;USE_DESC_TYPE&lt;BR /&gt;RESIDENT Temp&lt;BR /&gt;WHERE REPORT_DATE = $(vMaxDate);&lt;BR /&gt;&lt;BR /&gt;DROP TABLES Temp,Table_Max_Date;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ACC</description>
      <pubDate>Thu, 21 Feb 2019 16:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547644#M745827</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547647#M745828</link>
      <description>&lt;P&gt;This returned no data whatsoever &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547647#M745828</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T16:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547648#M745829</link>
      <description>Can you upload a qvw example?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547648#M745829</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547650#M745830</link>
      <description>&lt;P&gt;I'm not able to attach the QVD though&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547650#M745830</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547651#M745831</link>
      <description>upload an extract of qvd in excel format</description>
      <pubDate>Thu, 21 Feb 2019 16:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547651#M745831</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T16:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547654#M745832</link>
      <description>&lt;P&gt;Oh yeah sure!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547654#M745832</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-02-21T16:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547660#M745833</link>
      <description>&lt;P&gt;This qvw works!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura1000.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6530i85C3796AC10923F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura1000.JPG" alt="Captura1000.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ACC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 17:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load/m-p/1547660#M745833</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T17:11:57Z</dc:date>
    </item>
  </channel>
</rss>

