<?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: using left statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769067#M1033106</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;QV field names are case sensitive - is the field name Account or account?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your expression, based on your description, this what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left(account, 1) = '1', 'asset', If(Left(account, 1) = '6', 'expense', 'other')) As Account_Type,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 06:22:39 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-01-27T06:22:39Z</dc:date>
    <item>
      <title>using left statement</title>
      <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769065#M1033104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to sort my account column , example : 1101&amp;nbsp; , this is asset account because the first left digit is one&amp;nbsp; , and 6021 is expense account because the first digit is 6, I used the below statement but I got an error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Left("account",1) = 'asset') as "Account_Type" ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//or ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769065#M1033104</guid>
      <dc:creator>mustafaelryah</dc:creator>
      <dc:date>2015-01-27T06:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: using left statement</title>
      <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769066#M1033105</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 elaborate with an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Left("account",&lt;STRONG&gt;5&lt;/STRONG&gt;) = 'asset') as "Account_Type"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the account has 5 words let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769066#M1033105</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-01-27T06:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: using left statement</title>
      <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769067#M1033106</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;QV field names are case sensitive - is the field name Account or account?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your expression, based on your description, this what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left(account, 1) = '1', 'asset', If(Left(account, 1) = '6', 'expense', 'other')) As Account_Type,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769067#M1033106</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-27T06:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: using left statement</title>
      <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769068#M1033107</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;use this&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: 13px;"&gt;if(Left(account,1)=1, 'asset',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Left(account,1)=6,'expense','N/A')&lt;/SPAN&gt;) as account_type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HTH&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769068#M1033107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-27T06:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: using left statement</title>
      <link>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769069#M1033108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All correct answers , Thanks All ^_^, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-left-statement/m-p/769069#M1033108</guid>
      <dc:creator>mustafaelryah</dc:creator>
      <dc:date>2015-01-27T06:29:21Z</dc:date>
    </item>
  </channel>
</rss>

