<?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 Len Fuction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803025#M1041600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&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;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;GUID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 08:43:28 GMT</pubDate>
    <dc:creator>yduval75</dc:creator>
    <dc:date>2014-12-10T08:43:28Z</dc:date>
    <item>
      <title>If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803023#M1041598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write an "If" statement that checks the number of characters in a field then return "N/A" if the field contains more than 15 characters, otherwise return the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) as &lt;SPAN style="color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803023#M1041598</guid>
      <dc:creator />
      <dc:date>2014-12-10T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803024#M1041599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tumelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have brackets in the wrong place, you need to close the Len&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) as &lt;SPAN style="color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803024#M1041599</guid>
      <dc:creator />
      <dc:date>2014-12-10T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803025#M1041600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&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;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;GUID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803025#M1041600</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-10T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803026#M1041601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #0000ff;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #800000;"&gt;GUID&lt;SPAN style="font-size: 14pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;) as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803026#M1041601</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-10T08:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803027#M1041602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Tumelo,&lt;/P&gt;&lt;P&gt;i think expression looks wrong, try the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;15,'N/A',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;GUID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) as &lt;SPAN style="color: #800000;"&gt;GUID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803027#M1041602</guid>
      <dc:creator />
      <dc:date>2014-12-10T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803028#M1041603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803028#M1041603</guid>
      <dc:creator />
      <dc:date>2014-12-10T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803029#M1041604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how do I include another If condition to say If the field GUID is NULL it must also return "N/A" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803029#M1041604</guid>
      <dc:creator />
      <dc:date>2014-12-10T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803030#M1041605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Len(GUID)&amp;gt;15 0r Len(Trim(GUID)) = 0,'N/A',GUID) as GUID&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;0r&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;If(Len(GUID)&amp;gt;15 0r Len(Trim(GUID)) = 0,'N/A',GUID) as GUID&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;Note:&lt;/STRONG&gt; I was unable to post with "0r" in above condition. Replace number zero by o in above expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 11:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803030#M1041605</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-10T11:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803031#M1041606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just keep in mind, it's also possible to nest if statements:&lt;/P&gt;&lt;P&gt;If (Len(GUID), 'N/A', if(Len(GUID)&amp;gt;15, 'N/A', GUID)) as GUID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But of course, for this specific problem, anbu's solution looks better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 11:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803031#M1041606</guid>
      <dc:creator>tombombadil</dc:creator>
      <dc:date>2014-12-10T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: If Len Fuction</title>
      <link>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803032#M1041607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys! again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 12:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Len-Fuction/m-p/803032#M1041607</guid>
      <dc:creator />
      <dc:date>2014-12-10T12:27:36Z</dc:date>
    </item>
  </channel>
</rss>

