<?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 Problem with writing field values from another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916507#M651416</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;I have three columns in excel file. One is InvoiceID, ItemID and another is Sales Description. For InvoiceID which starts with ''SI" does not have an ItemID if you look at the excel file. Please see Sheet1 tab in excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am trying to get is the InvoiceID that starts with "SI" will bring the Sales Description into ItemID and make it an ItemID for that InvoiceID. Please see the Sheet2 tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the correct script for this to achieve the goal?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried with this: If (left(InvoiceID,2)=’SI’ and ItemID=’’,SalesDescription,ItemID) as ItemID &lt;/SPAN&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 02:14:41 GMT</pubDate>
    <dc:creator>AH</dc:creator>
    <dc:date>2015-08-10T02:14:41Z</dc:date>
    <item>
      <title>Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916507#M651416</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;I have three columns in excel file. One is InvoiceID, ItemID and another is Sales Description. For InvoiceID which starts with ''SI" does not have an ItemID if you look at the excel file. Please see Sheet1 tab in excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am trying to get is the InvoiceID that starts with "SI" will bring the Sales Description into ItemID and make it an ItemID for that InvoiceID. Please see the Sheet2 tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the correct script for this to achieve the goal?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried with this: If (left(InvoiceID,2)=’SI’ and ItemID=’’,SalesDescription,ItemID) as ItemID &lt;/SPAN&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 02:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916507#M651416</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2015-08-10T02:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916508#M651418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 03:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916508#M651418</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2015-08-10T03:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916509#M651419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your script does not work as expected (I didn't try) then try using IsNull(ItemID) instead of ItemID=''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 04:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916509#M651419</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2015-08-10T04:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916510#M651420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;If(Left(InvoiceID,2)=’SI’ and Len(Trim(ItemID)) = 0,SalesDescription, ItemID) as ItemID&lt;/STRONG&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; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/STRONG&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; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Left(InvoiceID,2)= 'SI' and Len(Trim(ItemID)) = 0, SalesDescription, ItemID) as ItemID&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 05:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916510#M651420</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T05:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916511#M651422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD InvoiceID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left(InvoiceID,2)= 'SI' and Len(Trim(ItemID)) = 0, SalesDescription, ItemID) as ItemID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Book4.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95474_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 05:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916511#M651422</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T05:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916512#M651423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please&amp;nbsp; find the attached QVW.&lt;/P&gt;&lt;P&gt;Hope it serves your purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 05:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916512#M651423</guid>
      <dc:creator />
      <dc:date>2015-08-10T05:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916513#M651425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have InvoiceID started with 'SI' and 'CN' and what would be the code change here?&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;Regards,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916513#M651425</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2015-08-13T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing field values from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916514#M651426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean 'SI' or 'CN'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #ff0000;"&gt;Match(Left(InvoiceID,2), 'SI', 'CN')&lt;/SPAN&gt; and Len(Trim(ItemID)) = 0, SalesDescription, ItemID) as ItemID,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-field-values-from-another-field/m-p/916514#M651426</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-13T14:16:27Z</dc:date>
    </item>
  </channel>
</rss>

