<?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. :Is there something wrong with this? or another way to do it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225732#M77999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to use the formatting function "date()" like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD ... , Date(Weekend(ACTSHIPDATE,0,-1),'YYYYMMDD') as Week... FROM ...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is that you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 17:49:36 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2011-02-22T17:49:36Z</dc:date>
    <item>
      <title>Is there something wrong with this? or another way to do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225730#M77997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to take the dates and the SHPSLSLBS and roll them up into weeks,&lt;/P&gt;&lt;P&gt;Everything works but the week code still comes out D/M/YYYY which is not what i want. I want YYYYMMDD format to i can tie to other data.&lt;/P&gt;&lt;P&gt;Is there something wrong with my method here? you can change date formats in the load script right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LDESource:&lt;/P&gt;&lt;P&gt;LOAD DTNUM,&lt;/P&gt;&lt;P&gt;weekend(ACTSHIPDATE,0,-1) AS Week,&lt;/P&gt;&lt;P&gt;SAP_CUSTNO&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;WHERE ORDDATE &amp;gt;= '1/1/2010';&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD DTNUM,&lt;/P&gt;&lt;P&gt;PARTNO,&lt;/P&gt;&lt;P&gt;ORDSLSLBS,&lt;/P&gt;&lt;P&gt;ORDSHPLBS,&lt;/P&gt;&lt;P&gt;ADJSLSLBS,&lt;/P&gt;&lt;P&gt;ADJSHPLBS,&lt;/P&gt;&lt;P&gt;SHPSLSLBS,&lt;/P&gt;&lt;P&gt;SHPSHPLBS&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where exists (DTNUM);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LDE:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(Week,'YYYYMMDD') as Week,&lt;/P&gt;&lt;P&gt;SAP_CUSTNO,&lt;/P&gt;&lt;P&gt;PARTNO,&lt;/P&gt;&lt;P&gt;sum(SHPSLSLBS) as LDE_Volume&lt;/P&gt;&lt;P&gt;RESIDENT LDESource&lt;/P&gt;&lt;P&gt;GROUP BY Week, SAP_CUSTNO,PARTNO ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table LDESource;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225730#M77997</guid>
      <dc:creator>patrickanderson</dc:creator>
      <dc:date>2011-02-22T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Is there something wrong with this? or another way to do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225731#M77998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well "date(Week,'YYYYMMDD') as Week" just tells QV that "Week" is already in the format "YYYYMMDD" and to use that format to read the date properly. Meaning, it's not used for writing the date. So you can either change the variables at the beginning of the script (SET DateFormat=YYYYMMDD';) or make that particular date function a date transform: date#(date(Week,'YYYYMMDD'),'YYYYMMDD') as Week.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225731#M77998</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-02-22T17:48:05Z</dc:date>
    </item>
    <item>
      <title>Re. :Is there something wrong with this? or another way to do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225732#M77999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to use the formatting function "date()" like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD ... , Date(Weekend(ACTSHIPDATE,0,-1),'YYYYMMDD') as Week... FROM ...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is that you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-with-this-or-another-way-to-do-it/m-p/225732#M77999</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-02-22T17:49:36Z</dc:date>
    </item>
  </channel>
</rss>

