<?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 String Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246650#M94000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a string function like right()&lt;/P&gt;&lt;P&gt;if(right([Material code],1)='s', ([Quantity]*2),[Quantity]) as [Billed Quantity]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 12:18:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-11-22T12:18:09Z</dc:date>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246649#M93999</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;I want to calculate the fields based on the following condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the material code ends with 'S' then the quantity should be multiplied by 2 else the quantity remains the same.&lt;/P&gt;&lt;P&gt;I tried the below codition but it results with some syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Material code] like '%s', ([Quantity]*2),[Quantity]) as [Billed Quantity]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me some solution to make it work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246649#M93999</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:15:30Z</dc:date>
    </item>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246650#M94000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a string function like right()&lt;/P&gt;&lt;P&gt;if(right([Material code],1)='s', ([Quantity]*2),[Quantity]) as [Billed Quantity]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246650#M94000</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-22T12:18:09Z</dc:date>
    </item>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246651#M94001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your spontaneous reply!!!&lt;/P&gt;&lt;P&gt;I have tried your solution, but again i m getting the syntax error..&lt;/P&gt;&lt;P&gt;Can u please suggest some other idea for my condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246651#M94001</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:28:00Z</dc:date>
    </item>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246652#M94002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, I believe the above approach should work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Material code] and [Quantity] have to be fields from your input table, not renamed fields or originated in another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post your complete LOAD script of this table load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246652#M94002</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-22T12:33:43Z</dc:date>
    </item>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246653#M94003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿Acctually These are from SAP Tables...&lt;/P&gt;&lt;P&gt;I have copied the fields until the requeired Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[VBRP]:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;// Key fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [VBELN] as [%BillingDocument_Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [VBELN] &amp;amp; '/' &amp;amp; [POSNR] as [%BillingDocumentItem_Key],&lt;/P&gt;&lt;P&gt;// Additional fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([NETWR] - [WAVWR]) as [Billing Sales Margin Amount],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as [Billing Item Counter], &lt;/P&gt;&lt;P&gt;// Renamed fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MATNR] as [Billing Material_MATNR], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FKIMG] as [Billing Sales Quantity_FKIMG],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NETWR] as [Billing Sales Amount_NETWR],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MEINS] as [Billing Base Unit_MEINS],&lt;/P&gt;&lt;P&gt;if(right([MATNR],1)='s', ([FKIMG]*2),[FKIMG]) as [Billed Quantity_FKIMG]; &lt;/P&gt;&lt;P&gt;SQL SELECT VBELV POSNV VBELN POSNN&lt;/P&gt;&lt;P&gt;FROM VBFA WHERE (VBTYP_N ='M' OR VBTYP_N ='O') AND (VBTYP_V ='J' OR VBTYP_V ='T');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246653#M94003</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:43:23Z</dc:date>
    </item>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/246654#M94004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I just don't get something here, but some of the fields you use in your load part are not part of the SQL SELECT, right? I believe this won't work then, you need to get those field from the DB using SQL SELECT first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/246654#M94004</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-22T12:49:42Z</dc:date>
    </item>
  </channel>
</rss>

