<?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: Logic help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423685#M804721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table with customer as dimension and this as the expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;customer = {"$(=index('|' &amp;amp; [opp string] &amp;amp; '|', '|' &amp;amp; customer &amp;amp; '|') = 0)"}&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(If(index('|' &amp;amp; [opp string] &amp;amp; '|', '|' &amp;amp; customer &amp;amp; '|') = 0, Sales))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The pipes '|' avoid problems if one customer name is also part of another customer name (eg 'gia' and 'gia1' would be distinct)&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 05:50:32 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-11-07T05:50:32Z</dc:date>
    <item>
      <title>Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423680#M804716</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 have table as attached, how to get the Opportunity value?. i.e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Opportunity &lt;/SPAN&gt;= sum(Exclude the rows from the calculation where 'opp string' includes 'customer' value. So, if anywhere in the pipe separated listed and a single 'customer' appears, the row will be excluded).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423680#M804716</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423681#M804717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD *, IF( Index(String, 'CUSTOMER') &amp;gt; 0, 1, 0) AS CustFlag;&lt;/P&gt;&lt;P&gt;LOAD customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper([opp string]) as String, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[New Microsoft Excel Workbook.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added couple of values as customer inside your opp string fields you can add and check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading this using Straight table add like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: customer, String&lt;/P&gt;&lt;P&gt;Expr: = Sum({&amp;lt; CustFlag = {0} &amp;gt;} Sales) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 03:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423681#M804717</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-07T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423682#M804718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraju, thanks for your reply. &lt;/P&gt;&lt;P&gt;Here we can not hard code any customer names in logic as we have so many customers present in table and the calculation should apply to every row of the table, However the comparison has to happen in between the strings (customer, opp string) in the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 04:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423682#M804718</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2017-11-07T04:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423683#M804719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423683#M804719</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2017-11-07T05:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423684#M804720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[opp string] -={"*customer*"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423684#M804720</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-07T05:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423685#M804721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table with customer as dimension and this as the expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;customer = {"$(=index('|' &amp;amp; [opp string] &amp;amp; '|', '|' &amp;amp; customer &amp;amp; '|') = 0)"}&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(If(index('|' &amp;amp; [opp string] &amp;amp; '|', '|' &amp;amp; customer &amp;amp; '|') = 0, Sales))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The pipes '|' avoid problems if one customer name is also part of another customer name (eg 'gia' and 'gia1' would be distinct)&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423685#M804721</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-07T05:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423686#M804722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain your requirement a bit&amp;nbsp; more clearly ? What do you mean by customer name ?&lt;/P&gt;&lt;P&gt;Or you share a expected output from the file you have provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it will be easy for us to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423686#M804722</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-11-07T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423687#M804723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan's solution should work for you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423687#M804723</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-11-07T06:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423688#M804724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not meant to hardcode any values your excel sheet doesnot have any text customer so for testing purposes i added. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1423688#M804724</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-07T14:50:22Z</dc:date>
    </item>
  </channel>
</rss>

