<?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: I'm having a script problem. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398867#M424376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Obrigado Luiz. Estava com presa.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2017 23:39:51 GMT</pubDate>
    <dc:creator>Ribeiro</dc:creator>
    <dc:date>2017-11-29T23:39:51Z</dc:date>
    <item>
      <title>I'm having a script problem.</title>
      <link>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398865#M424374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;When it's the same&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;field,&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;123123,5&lt;/P&gt;&lt;P&gt;312312,5&lt;/P&gt;&lt;P&gt;312314,5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;The &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/SPAN&gt; record does not let itself be repeated, it is giving this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;Example below it leaves because the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;REP&lt;/STRONG&gt;&lt;/SPAN&gt; field are different &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;IMG __jive_id="185147" alt="2017-11-29_15-38-25.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185147_2017-11-29_15-38-25.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 29px;"&gt;Here it works because REP is different&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15119813632501759" jivemacro_uid="_15119813632501759"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TMP:&lt;/P&gt;
&lt;P&gt;LOAD * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;field,&lt;SPAN style="font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;123123,5&lt;/P&gt;
&lt;P&gt;312312,3&lt;/P&gt;
&lt;P&gt;312314,8&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 TO NoOfRows('TMP')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vTbl = FieldValue('field', $(i));&lt;/P&gt;
&lt;P&gt;LET vCon = previous(FieldValue('Rep',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(i)));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TRACE $(vCon);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sumary:&lt;/P&gt;
&lt;P&gt;LOAD '$(vTbl)' AS MyField,&lt;/P&gt;
&lt;P&gt;$(vCon)&amp;nbsp; AS MyRep,&lt;/P&gt;
&lt;P&gt;RecNo()&amp;nbsp; AS CONT&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;AutoGenerate $(vCon)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NEXT &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table TMP;&lt;/P&gt;
&lt;P&gt;EXIT Script;&lt;/P&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 18:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398865#M424374</guid>
      <dc:creator>Ribeiro</dc:creator>
      <dc:date>2017-11-29T18:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having a script problem.</title>
      <link>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398866#M424375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to use this instead?&lt;/P&gt;&lt;P&gt; LET vTbl = Num(Peek('field', i-1, 'TMP'));&lt;/P&gt;&lt;P&gt; LET vCon = Num(Peek('Rep', i-1, 'TMP'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 23:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398866#M424375</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-11-29T23:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having a script problem.</title>
      <link>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398867#M424376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Obrigado Luiz. Estava com presa.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 23:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-m-having-a-script-problem/m-p/1398867#M424376</guid>
      <dc:creator>Ribeiro</dc:creator>
      <dc:date>2017-11-29T23:39:51Z</dc:date>
    </item>
  </channel>
</rss>

