<?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: Rename data in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744331#M590995</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122821"&gt;@Supertendi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to rename fialed use&lt;/P&gt;&lt;P&gt;Rename Field XXX to YYYY;&lt;/P&gt;&lt;P&gt;and if I understtod correctly&lt;/P&gt;&lt;LI-CODE lang="python"&gt;LOAD *,
If(DESC_GRP='Ires','Imposte',IF(DESC_GRP='Irap','Imposte',DESC_GRP)) AS DESC_GRP;

SQL SELECT IND, TIPO, CODICE, DESCRIZIONE, SUBTOTALI, GRUPPO, CDC_SBT, DESC_GRP, CONTO_RICLASSIFICATO
FROM GIMETAL_RICLASSIFICATO&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 16 Sep 2020 13:46:42 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-09-16T13:46:42Z</dc:date>
    <item>
      <title>Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744325#M590994</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have some data in one field called "Ires" and "Irap" and i want to change their name in "Imposte". the field is named "DESC_GRP".&lt;/P&gt;&lt;P&gt;this is my script that doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tabella_riclassificato:&lt;BR /&gt;LOAD DESC_GRP,&lt;BR /&gt;If(DESC_GRP='Ires','Imposte',IF(DESC_GRP='Irap','Imposte',DESC_GRP)) AS DESC_GRP;&lt;/P&gt;&lt;P&gt;SQL SELECT IND, TIPO, CODICE, DESCRIZIONE, SUBTOTALI, GRUPPO, CDC_SBT, DESC_GRP, CONTO_RICLASSIFICATO&lt;BR /&gt;FROM GIMETAL_RICLASSIFICATO&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744325#M590994</guid>
      <dc:creator>Supertendi</dc:creator>
      <dc:date>2020-09-16T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744331#M590995</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122821"&gt;@Supertendi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to rename fialed use&lt;/P&gt;&lt;P&gt;Rename Field XXX to YYYY;&lt;/P&gt;&lt;P&gt;and if I understtod correctly&lt;/P&gt;&lt;LI-CODE lang="python"&gt;LOAD *,
If(DESC_GRP='Ires','Imposte',IF(DESC_GRP='Irap','Imposte',DESC_GRP)) AS DESC_GRP;

SQL SELECT IND, TIPO, CODICE, DESCRIZIONE, SUBTOTALI, GRUPPO, CDC_SBT, DESC_GRP, CONTO_RICLASSIFICATO
FROM GIMETAL_RICLASSIFICATO&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744331#M590995</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-16T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744341#M590996</link>
      <description>&lt;P&gt;Your post title is a little bit misleading.&amp;nbsp; what you really wanted was transform your data.&amp;nbsp; the if statement in your script is correct.&amp;nbsp; however, the problem is that you are naming the transformed field the same as an existing field.&amp;nbsp; QV will not allow the same field name used more than once.&amp;nbsp; how about:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Tabella_riclassificato:&lt;BR /&gt;LOAD DESC_GRP,&lt;BR /&gt;If(DESC_GRP='Ires','Imposte',IF(DESC_GRP='Irap','Imposte',DESC_GRP)) AS DESC_GRP_TRANSFORMED;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744341#M590996</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-16T14:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744342#M590997</link>
      <description>&lt;P&gt;I would like to maintain the same name because I have several expressions working with this field name.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744342#M590997</guid>
      <dc:creator>Supertendi</dc:creator>
      <dc:date>2020-09-16T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744367#M590998</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122821"&gt;@Supertendi&lt;/a&gt;&amp;nbsp; You could write match function as well to simplify . Also try to use trim with lower function to make sure that it should written value when there is white spaces or case mistamtch&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;LOAD *,
If(match(lower(trim(DESC_GRP)),'ires','irap'),'Imposte',DESC_GRP)) AS DESC_GRP;

SQL SELECT IND, TIPO, CODICE, DESCRIZIONE, SUBTOTALI, GRUPPO, CDC_SBT, DESC_GRP, CONTO_RICLASSIFICATO
FROM GIMETAL_RICLASSIFICATO;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 15:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744367#M590998</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-16T15:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744421#M590999</link>
      <description>&lt;P&gt;you cant have the same field name twice in same table.&amp;nbsp; you can switch the field names if you want:&lt;/P&gt;&lt;P&gt;Tabella_riclassificato:&lt;BR /&gt;LOAD DESC_GRP as SOMEOTHERNAME,&lt;BR /&gt;If(DESC_GRP='Ires','Imposte',IF(DESC_GRP='Irap','Imposte',DESC_GRP)) AS DESC_GRP;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 17:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744421#M590999</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-16T17:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744422#M591000</link>
      <description>&lt;P&gt;this will fail as DESC_GRP will appear twice&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 17:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1744422#M591000</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-16T17:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1746808#M591001</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it says syntax error: FROM missing or misplaced...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1746808#M591001</guid>
      <dc:creator>Supertendi</dc:creator>
      <dc:date>2020-09-24T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data in field</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1751285#M591002</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql.PNG" style="width: 748px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42037iD875BBF71B4EBC4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sql.PNG" alt="sql.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 15:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-in-field/m-p/1751285#M591002</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-10T15:36:59Z</dc:date>
    </item>
  </channel>
</rss>

