<?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: help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882503#M307809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you "losing" your customers? Are you making a single table in your load script and then only end up with four rows. You say that you want four rows in your requirements - so I am not sure what you are asking for...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let give you a hint about the TextBetween() - it will return an empty string so if you check for an empty string you could replace the value with a special number like -1 or a running number that is negative for those that dont' have a Payer number... then you can retain all Payers even if they don't have a payer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you do should be based on some clear requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an approach that might work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payer:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; PayerName1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If ( [Payer number] = '' , -AutoNumber(RowNo(),'Payer Number') , [Payer number] ) AS [Payer number]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(Payer1,'(',1) AS PayerName1&lt;/P&gt;&lt;P&gt;&amp;nbsp; , TextBetween(Payer1,'(',')') AS [Payer number]&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Payer1&lt;/P&gt;&lt;P&gt;SORELEC (4758741)&lt;/P&gt;&lt;P&gt;SOVE ()&lt;/P&gt;&lt;P&gt;Process &amp;amp; Plant Sales Ltd ()&lt;/P&gt;&lt;P&gt;PRODEX NORTH EUROPEAN (177635)&lt;/P&gt;&lt;P&gt;ABS-5006 (67548909)&lt;/P&gt;&lt;P&gt;FINCH-020 (566365657)&lt;/P&gt;&lt;P&gt;] (delimiter is \t); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payer2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Payer Payer number&lt;/P&gt;&lt;P&gt;SORELEC 4758741&lt;/P&gt;&lt;P&gt;PRODEX NORTH EUROPEAN 177635&lt;/P&gt;&lt;P&gt;ABS-5006 67548909&lt;/P&gt;&lt;P&gt;FINCH-020 566365657&lt;/P&gt;&lt;P&gt;] (delimiter is \t); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 May 2015 09:20:59 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-05-31T09:20:59Z</dc:date>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882502#M307808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In attached xls, i have two tabs&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;tab1&lt;/STRONG&gt; : first data source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Payer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="112" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="231"&gt;SORELEC (4758741)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;SOVE ()&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Process &amp;amp; Plant Sales Ltd ()&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;P&gt;PRODEX NORTH EUROPEAN (177635)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="231"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="231"&gt;ABS-5006 (67548909)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;FINCH-020 (566365657)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Tab 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="150" style="width: 349px; height: 151px;" width="349"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="182"&gt;Payer &lt;/TD&gt;&lt;TD class="xl67" width="95"&gt;Payer number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;SORELEC&lt;/TD&gt;&lt;TD align="right"&gt;4758741&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;PRODEX NORTH EUROPEAN &lt;/TD&gt;&lt;TD align="right"&gt;177635&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ABS-5006&lt;/TD&gt;&lt;TD align="right"&gt;67548909&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;FINCH-020&lt;/TD&gt;&lt;TD align="right"&gt;566365657&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;My requirement is to have one table where i have flag assigned to each record as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; 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; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="140" style="width: 410px; height: 140px;" width="410"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="182"&gt;Payer &lt;/TD&gt;&lt;TD class="xl67" width="95"&gt;Payer number&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;Pflag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;SORELEC&lt;/TD&gt;&lt;TD align="right"&gt;4758741&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;PRODEX NORTH EUROPEAN &lt;/TD&gt;&lt;TD align="right"&gt;177635&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ABS-5006&lt;/TD&gt;&lt;TD align="right"&gt;67548909&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;FINCH-020&lt;/TD&gt;&lt;TD align="right"&gt;566365657&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i tried the following expression &lt;STRONG style="font-style: inherit; font-size: 13.3333330154419px; font-family: inherit; color: #ff00ff;"&gt;num(trim(TextBetween(Payer.Name,'(',')',substringcount(Payer.Name,'('))))&amp;nbsp; &lt;/STRONG&gt;but in my result table i am losing my two customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="112" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;SOVE ()&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Process &amp;amp; Plant Sales Ltd ()&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My mind has stopped working .. please help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2015 06:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882502#M307808</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2015-05-31T06:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882503#M307809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you "losing" your customers? Are you making a single table in your load script and then only end up with four rows. You say that you want four rows in your requirements - so I am not sure what you are asking for...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let give you a hint about the TextBetween() - it will return an empty string so if you check for an empty string you could replace the value with a special number like -1 or a running number that is negative for those that dont' have a Payer number... then you can retain all Payers even if they don't have a payer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you do should be based on some clear requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an approach that might work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payer:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; PayerName1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If ( [Payer number] = '' , -AutoNumber(RowNo(),'Payer Number') , [Payer number] ) AS [Payer number]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(Payer1,'(',1) AS PayerName1&lt;/P&gt;&lt;P&gt;&amp;nbsp; , TextBetween(Payer1,'(',')') AS [Payer number]&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Payer1&lt;/P&gt;&lt;P&gt;SORELEC (4758741)&lt;/P&gt;&lt;P&gt;SOVE ()&lt;/P&gt;&lt;P&gt;Process &amp;amp; Plant Sales Ltd ()&lt;/P&gt;&lt;P&gt;PRODEX NORTH EUROPEAN (177635)&lt;/P&gt;&lt;P&gt;ABS-5006 (67548909)&lt;/P&gt;&lt;P&gt;FINCH-020 (566365657)&lt;/P&gt;&lt;P&gt;] (delimiter is \t); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payer2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Payer Payer number&lt;/P&gt;&lt;P&gt;SORELEC 4758741&lt;/P&gt;&lt;P&gt;PRODEX NORTH EUROPEAN 177635&lt;/P&gt;&lt;P&gt;ABS-5006 67548909&lt;/P&gt;&lt;P&gt;FINCH-020 566365657&lt;/P&gt;&lt;P&gt;] (delimiter is \t); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2015 09:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882503#M307809</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-31T09:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882504#M307810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should there be an excel attachment on this post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 11:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/882504#M307810</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-01T11:26:13Z</dc:date>
    </item>
  </channel>
</rss>

