<?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 Overwriting already loaded data (Qlik Sense) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158240#M20968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck here and need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading data from Excel and once loaded I need to change some cells of a table depending on a condition.&lt;/P&gt;&lt;P&gt;The sample data is as follows:&lt;BR /&gt;&lt;IMG alt="CurrentData.jpg" class="jive-image image-1" height="250" src="https://community.qlik.com/legacyfs/online/135338_CurrentData.jpg" style="max-width: 620px; height: 250.48px; width: 248px;" width="248" /&gt;&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="color: #3366ff;"&gt;Load script&lt;/SPAN&gt; there is no issue loading both columns, &lt;EM&gt;Business Unit&lt;/EM&gt; and &lt;EM&gt;Business Segment&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;However, I need to reassign all the &lt;EM&gt;Business Segment&lt;/EM&gt; cells containing the word "&lt;SPAN style="color: #ffcc00;"&gt;Project&lt;/SPAN&gt;" to the &lt;SPAN style="color: #99cc00;"&gt;Sales Projects&lt;/SPAN&gt; &lt;EM&gt;Business Unit&lt;/EM&gt;. This is the desired result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DesiredResult.jpg" class="jive-image image-2" height="253" src="https://community.qlik.com/legacyfs/online/135339_DesiredResult.jpg" style="height: 252.5px; width: 250px;" width="250" /&gt;&lt;/P&gt;&lt;P&gt;As you may notice, at &lt;SPAN style="color: #3366ff;"&gt;Load&lt;/SPAN&gt; time there are &lt;EM&gt;Business Segment&lt;/EM&gt; cells that belong to &lt;SPAN style="color: #99cc00;"&gt;Sales Projects&lt;/SPAN&gt;, that must remain like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried do a &lt;STRONG&gt;Mapping&lt;/STRONG&gt;, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;Move_to_BU_from_BS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;MAPPING LOAD * INLINE &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; 'Business Segment', 'Business Unit'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Product, Sales Projects,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Parts, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Special, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project International, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;but once loaded, &lt;EM&gt;Business Unit&lt;/EM&gt; cannot be used again in the mapping of &lt;EM&gt;Business Segment&lt;/EM&gt;. I get this error message: &lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;Field names must be unique within table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is caused because Business Unit has already been loaded and I am attempting to use the name again in the mapping...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe mapping is not the right solution, so I will appreciate any hints and help to find the correct way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching also the Excel file with both CurrentData and DesiredResult tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 17:21:07 GMT</pubDate>
    <dc:creator>demonioazul</dc:creator>
    <dc:date>2016-08-23T17:21:07Z</dc:date>
    <item>
      <title>Overwriting already loaded data (Qlik Sense)</title>
      <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158240#M20968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck here and need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading data from Excel and once loaded I need to change some cells of a table depending on a condition.&lt;/P&gt;&lt;P&gt;The sample data is as follows:&lt;BR /&gt;&lt;IMG alt="CurrentData.jpg" class="jive-image image-1" height="250" src="https://community.qlik.com/legacyfs/online/135338_CurrentData.jpg" style="max-width: 620px; height: 250.48px; width: 248px;" width="248" /&gt;&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="color: #3366ff;"&gt;Load script&lt;/SPAN&gt; there is no issue loading both columns, &lt;EM&gt;Business Unit&lt;/EM&gt; and &lt;EM&gt;Business Segment&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;However, I need to reassign all the &lt;EM&gt;Business Segment&lt;/EM&gt; cells containing the word "&lt;SPAN style="color: #ffcc00;"&gt;Project&lt;/SPAN&gt;" to the &lt;SPAN style="color: #99cc00;"&gt;Sales Projects&lt;/SPAN&gt; &lt;EM&gt;Business Unit&lt;/EM&gt;. This is the desired result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DesiredResult.jpg" class="jive-image image-2" height="253" src="https://community.qlik.com/legacyfs/online/135339_DesiredResult.jpg" style="height: 252.5px; width: 250px;" width="250" /&gt;&lt;/P&gt;&lt;P&gt;As you may notice, at &lt;SPAN style="color: #3366ff;"&gt;Load&lt;/SPAN&gt; time there are &lt;EM&gt;Business Segment&lt;/EM&gt; cells that belong to &lt;SPAN style="color: #99cc00;"&gt;Sales Projects&lt;/SPAN&gt;, that must remain like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried do a &lt;STRONG&gt;Mapping&lt;/STRONG&gt;, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;Move_to_BU_from_BS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;MAPPING LOAD * INLINE &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; 'Business Segment', 'Business Unit'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Product, Sales Projects,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Parts, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project Special, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&amp;nbsp; Project International, &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;Sales Projects&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;but once loaded, &lt;EM&gt;Business Unit&lt;/EM&gt; cannot be used again in the mapping of &lt;EM&gt;Business Segment&lt;/EM&gt;. I get this error message: &lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;Field names must be unique within table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is caused because Business Unit has already been loaded and I am attempting to use the name again in the mapping...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe mapping is not the right solution, so I will appreciate any hints and help to find the correct way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching also the Excel file with both CurrentData and DesiredResult tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158240#M20968</guid>
      <dc:creator>demonioazul</dc:creator>
      <dc:date>2016-08-23T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting already loaded data (Qlik Sense)</title>
      <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158241#M20969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try the following expression, and you need modify the expression a little&lt;/P&gt;&lt;P&gt;If(WildMatch( [Business Segment] , 'Project*'), 'Sales Projects',&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match( [Business Segment], ' '), ' ', ' ')) as new_Business_Segment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158241#M20969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-23T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting already loaded data (Qlik Sense)</title>
      <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158242#M20970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the soon reply, Haikuo Yu &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the wildmatch but where do I assign the &lt;EM&gt;Business Unit&lt;/EM&gt;? I do not want a new field like &lt;EM&gt;new_Business_Segment&lt;/EM&gt; (unless it is a temporary step), because I need to relocate the cells that contain Project* to the Sales Projects &lt;EM&gt;Business Unit&lt;/EM&gt;... I need to generate charts with the "DesiredResult" table and if I generate &lt;EM&gt;new_Business_Segment&lt;/EM&gt; I can't relate the data to the Sales Projects &lt;EM&gt;Business Unit&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've been thinking in two steps... but without solving the issue of using the same field name, I cannot find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other hints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158242#M20970</guid>
      <dc:creator>demonioazul</dc:creator>
      <dc:date>2016-08-23T17:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting already loaded data (Qlik Sense)</title>
      <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158243#M20971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/222252"&gt;datalakeyu&lt;/A&gt;‌, your hint led me to the solution, thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CurrentData]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Business Unit],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(WildMatch([Business Segment],'Project*'),'Sales Projects',[Business Unit]) as TempBU2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Business Segment],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt; FROM [lib://160822/RelocationData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CurrentData);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then I use only for my charts TempBU2.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158243#M20971</guid>
      <dc:creator>demonioazul</dc:creator>
      <dc:date>2016-08-23T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting already loaded data (Qlik Sense)</title>
      <link>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158244#M20972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to learn from you. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overwriting-already-loaded-data-Qlik-Sense/m-p/1158244#M20972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-23T20:37:57Z</dc:date>
    </item>
  </channel>
</rss>

