<?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: Split field and add dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754729#M590912</link>
    <description>I want the dates marked with 03 or 04&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Oct 2020 21:59:30 GMT</pubDate>
    <dc:creator>djnqlear</dc:creator>
    <dc:date>2020-10-21T21:59:30Z</dc:date>
    <item>
      <title>Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754724#M590907</link>
      <description>&lt;P&gt;Hi i have a field with all 365 days were days are marked either 01,03 or 04.&lt;/P&gt;&lt;P&gt;There are 3 fields stream(5), year(2020) and note(03030101040101010101...........)&lt;/P&gt;&lt;P&gt;I want to split and date note like&lt;/P&gt;&lt;P&gt;2020-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03&lt;/P&gt;&lt;P&gt;2020-01-02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03&lt;/P&gt;&lt;P&gt;2020-01-03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01&lt;/P&gt;&lt;P&gt;is it possible? se sampledata.qvw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754724#M590907</guid>
      <dc:creator>djnqlear</dc:creator>
      <dc:date>2024-11-15T23:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754727#M590908</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126071"&gt;@djnqlear&lt;/a&gt;&amp;nbsp; what is logic to get date from long Note field value?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754727#M590908</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-21T21:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754728#M590910</link>
      <description>&lt;P&gt;I'm thinking that you could do something similar to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For i =0 to 264&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;stream,&lt;/P&gt;&lt;P&gt;year,&lt;/P&gt;&lt;P&gt;dayname(yearstart(makedate(year)) + $(i)) as Date,&lt;/P&gt;&lt;P&gt;mid(note, $(i) *2+1) as note&lt;/P&gt;&lt;P&gt;From source;&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754728#M590910</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-10-21T21:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754729#M590912</link>
      <description>I want the dates marked with 03 or 04&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754729#M590912</guid>
      <dc:creator>djnqlear</dc:creator>
      <dc:date>2020-10-21T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754733#M590915</link>
      <description>&lt;P&gt;first 2 char in note field is 2020-01-01&amp;nbsp; next 2 2020-01-02 ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754733#M590915</guid>
      <dc:creator>djnqlear</dc:creator>
      <dc:date>2020-10-21T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754735#M590916</link>
      <description>&lt;P&gt;For example, if your data was in a Resident table "Data" (adjust to where ever your input is).&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; Stream&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; Year&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Date&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Year&lt;/SPAN&gt;) + &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;()) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Mid&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Note&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;() * 2 - 1, 2) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;NoteValue&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Resident&lt;/SPAN&gt; Data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;While&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;() * 2 &amp;lt; &lt;SPAN class="s1"&gt;len&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Note&lt;/SPAN&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754735#M590916</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-10-21T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754738#M590918</link>
      <description>&lt;P&gt;Dates missing 2019-01-01?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754738#M590918</guid>
      <dc:creator>djnqlear</dc:creator>
      <dc:date>2020-10-21T22:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split field and add dates</title>
      <link>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754748#M590921</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126071"&gt;@djnqlear&lt;/a&gt;&amp;nbsp; not sure if I completely understand . But gave it a shot&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
LOAD Year,
     Stream
     date(makedate(Year)+IterNo()-1) as Date,
     mid(Note, IterNo()*2-1,2) as Note,
     Note as Note_Original
FROM Table
while IterNo() &amp;lt;= (len(Note)/2);
      &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Oct 2020 23:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-field-and-add-dates/m-p/1754748#M590921</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-21T23:37:06Z</dc:date>
    </item>
  </channel>
</rss>

