<?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 Add calculated field in the load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786745#M278334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script of the qv file (in attachment) I want to add a new calculated field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Datum 1: Lancering Workflow]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Datum 7: Finale goedkeuring]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Doorlooptijd in werkdagen (etappe)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;,'##,00', &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&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;&lt;P&gt;During the reload I got the message : Field names must be unique within table MainTable: &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;I don't see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qv in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Dec 2014 07:30:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-25T07:30:29Z</dc:date>
    <item>
      <title>Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786745#M278334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script of the qv file (in attachment) I want to add a new calculated field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Datum 1: Lancering Workflow]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Datum 7: Finale goedkeuring]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Doorlooptijd in werkdagen (etappe)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;,'##,00', &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&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;&lt;P&gt;During the reload I got the message : Field names must be unique within table MainTable: &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;I don't see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qv in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 07:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786745#M278334</guid>
      <dc:creator />
      <dc:date>2014-12-25T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786746#M278335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;NetWorkDays(1,2,) as [Doorlooptijd in werkdagen]&lt;STRONG&gt;,'##,00',&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The problem is the bold part. That creates a field with the name '##,00'. Since that happens twice in the load statement you get the duplicate field error. I have no idea what you intended that '##,00' to do, but it doesn't do anything useful and is causing the error you see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 07:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786746#M278335</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-25T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786747#M278336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to open the file, will u pls provide some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sub2u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 08:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786747#M278336</guid>
      <dc:creator />
      <dc:date>2014-12-25T08:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786748#M278337</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;Problem is in the mean while solved by Gysbert Wassenaar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the bold part. That creates a field with the name '##,00'. Since that happens twice in the load statement you get the duplicate field error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks  a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merry Chrsitmas and Happy New Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 09:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786748#M278337</guid>
      <dc:creator />
      <dc:date>2014-12-25T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786749#M278338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. Indead '##,00', is useless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is removed and OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merry Chrsitmas and Happy New Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 09:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786749#M278338</guid>
      <dc:creator />
      <dc:date>2014-12-25T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786750#M278339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Merry Chrsitmas and Happy New Year to you too! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Can you mark this discussion as Answered?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 09:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786750#M278339</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-25T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated field in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786751#M278340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok. Normally I can mark the response as “Juiste oplossing” but this is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I mark this discussion as answered ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 14:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-field-in-the-load-script/m-p/786751#M278340</guid>
      <dc:creator />
      <dc:date>2014-12-25T14:47:39Z</dc:date>
    </item>
  </channel>
</rss>

