<?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: IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483874#M552476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Change name.png" class="jive-image" src="/legacyfs/online/48619_Change name.png" /&gt;&lt;/P&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Thank you for your responses. I tried to do what you told, but my request did not work.&lt;/P&gt;&lt;P&gt;This is my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDE_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DC Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INT_DESC,&amp;nbsp; //DC Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(INT_DESC = 'MANTENO DC', 'YC Kennewick Coldstor DC', INT_DESC) AS DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;INT_XREF.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; upper(trim(INT_TYPE)) = 'PLT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the display from&amp;nbsp; 'MANTENO DC' to 'YC Kennewick Coldstor DC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 15:46:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-06T15:46:49Z</dc:date>
    <item>
      <title>IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483871#M552473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying actually to solve a problem concerned a Qlikview dashboard, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dashbord takes some information about differents plant in Canada. I have to change the name of one of them in the report without changing the name in the database. &lt;/P&gt;&lt;P&gt;For exemple: I have a windows that contain name of plant, them adresses, rate, ...etc. The name of one of those plants is ABS, and I want that the name change to AAA. I know that i have to use an If statement in my proprieties, but i don't know where can i put it, and what's the correct form of the request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483871#M552473</guid>
      <dc:creator />
      <dc:date>2013-11-05T20:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483872#M552474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walid,&lt;/P&gt;&lt;P&gt;If you a Chart and using the Name of the Plant as one of your dimanesion, you can use 'If' condition.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;If you want to change the name of the plant from ABS to AAA,&lt;/P&gt;&lt;P&gt;you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Name_of_Plant = 'ABS', 'AAA', Name_of_Plant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this will do is whenever the name ABS comes in the report, it will change it to AAA and otherwise it will fetch the data from the field Name_of_Plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this might help your query..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 05:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483872#M552474</guid>
      <dc:creator />
      <dc:date>2013-11-06T05:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483873#M552475</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;In script you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;If(Name_of_Plant = 'ABS', 'AAA', Name_of_Plant) AS Name_of_Plant,&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 05:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483873#M552475</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-06T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483874#M552476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Change name.png" class="jive-image" src="/legacyfs/online/48619_Change name.png" /&gt;&lt;/P&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Thank you for your responses. I tried to do what you told, but my request did not work.&lt;/P&gt;&lt;P&gt;This is my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDE_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DC Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INT_DESC,&amp;nbsp; //DC Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(INT_DESC = 'MANTENO DC', 'YC Kennewick Coldstor DC', INT_DESC) AS DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;INT_XREF.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; upper(trim(INT_TYPE)) = 'PLT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the display from&amp;nbsp; 'MANTENO DC' to 'YC Kennewick Coldstor DC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483874#M552476</guid>
      <dc:creator />
      <dc:date>2013-11-06T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483875#M552477</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 are using mapping load? so you can use only two fields in it. So try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAPPING LOAD DISTINCT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDE_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DC Code&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(INT_DESC = 'MANTENO DC', 'YC Kennewick Coldstor DC', INT_DESC) AS DC&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;INT_XREF.qvd&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; upper(trim(INT_TYPE)) = 'PLT';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483875#M552477</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-06T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483876#M552478</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 tried it. Nothing has changed. 'MANTENO DC'&amp;nbsp; is always on the dashboard.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483876#M552478</guid>
      <dc:creator />
      <dc:date>2013-11-06T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483877#M552479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I tried it. Nothing has changed. 'MANTENO DC'&amp;nbsp; is always on the dashboard....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thank you for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483877#M552479</guid>
      <dc:creator />
      <dc:date>2013-11-06T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483878#M552480</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;Can you provide a sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 20:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483878#M552480</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-06T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483879#M552481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walid,&lt;/P&gt;&lt;P&gt;You are using mapping load, Are you using this data with applymap in another load? If not then this table will be gone after your load is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes try, just a shot hope you have no empty space in data.&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: 12.727272033691406px;"&gt;If(&lt;STRONG&gt;trim&lt;/STRONG&gt;(INT_DESC) = 'MANTENO DC', 'YC Kennewick Coldstor DC', INT_DESC) AS DC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 20:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483879#M552481</guid>
      <dc:creator />
      <dc:date>2013-11-06T20:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483880#M552482</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;Have you tried using the REPLACE Function in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE(Plant,'ABS','AAA') AS Plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create a list box expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE(Plant,'ABS','AAA')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 20:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement/m-p/483880#M552482</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-11-06T20:23:42Z</dc:date>
    </item>
  </channel>
</rss>

