<?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: Code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Code/m-p/641592#M235058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Trim(if(Match(FuelType='Diesel','DIESEL'),'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DIESEL&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(FuelType='LPG'),'LPG',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(FuelType='CNG'),'CNG'))) ) as FuelType&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;From Location;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 12:39:11 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-05-21T12:39:11Z</dc:date>
    <item>
      <title>Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641589#M235055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest what would be optimized code for code given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(FuelType='Diesel' or FuelType='DIESEL','Diesel',If(FuelType='LPG','LPG',If(FuelType='CNG','CNG')))as FuelType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If fuel type is Diesel or DIESEL then i need to display DIESEL or if fuel type is CNG then CNG and if LPG then LPG.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641589#M235055</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-05-21T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641590#M235056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;if(Match(FuelType='Diesel','DIESEL'),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DIESEL&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;If(Match(FuelType='LPG'),'LPG',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;If(Match(FuelType='CNG'),'CNG'))) as FuelType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641590#M235056</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-21T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641591#M235057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;upper(trim(FuelType) )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewFuelType&lt;/P&gt;&lt;P&gt;from path;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641591#M235057</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-21T12:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641592#M235058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Trim(if(Match(FuelType='Diesel','DIESEL'),'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DIESEL&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(FuelType='LPG'),'LPG',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(FuelType='CNG'),'CNG'))) ) as FuelType&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;From Location;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641592#M235058</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-21T12:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641593#M235059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving me syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 04:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641593#M235059</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-05-22T04:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641594#M235060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Upper(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FuelType&lt;/SPAN&gt;)='DIESEL','DIESEL',if(Upper(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FuelType&lt;/SPAN&gt;)='LPG','LPG',if(Upper(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FuelType&lt;/SPAN&gt;)='CNG','CNG')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 07:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641594#M235060</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2014-05-22T07:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://community.qlik.com/t5/QlikView/Code/m-p/641595#M235061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(Match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FuelType&lt;/SPAN&gt;,'Diesel' ,'DIESEL','LPG','CNG'),Upper(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FuelType&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 08:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code/m-p/641595#M235061</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-22T08:39:05Z</dc:date>
    </item>
  </channel>
</rss>

