<?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 Set Analysis / Like Operator Help! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230480#M82300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Dayna ,&lt;/P&gt;&lt;P&gt;I got a solution for this &lt;IMG alt="Lightning" src="http://community.qlik.com/emoticons/emotion-60.gif" /&gt;. I hope this helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create field at script level like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Account&amp;lt;&amp;gt;'1221','N','Y') &lt;B&gt;as&lt;/B&gt; Rem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Expression :&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Account={1221},Type={"R*"}&amp;gt; + &amp;lt;Rem={"N"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 12:33:01 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-02-25T12:33:01Z</dc:date>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230473#M82293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I'm wondering if you could advise as to whether the following is possible... I want combine an if statement with a LIKE operator into my Set Analysis.&lt;/P&gt;&lt;P&gt;What I am trying to achieve is, for the gltr_acc = '06200', then sum(amt) for any parts that have the pt_part_type like 'R%'...&lt;/P&gt;&lt;P&gt;So basically, for other account codes, I want to sum everything, but when the account code is 06200, then I only want to show the products where the pt_part_type beings with R.&lt;/P&gt;&lt;P&gt;Now, my overall total must include the values from the 06200 account code with the above, and also the total from the other account codes for everything.. I tried something like this, but it doesn't bring back any results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if&lt;/P&gt;(&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;(gltr_acc='06200' ,sum({$&amp;lt;pt_part_type = 'R%'&amp;gt;} gltr_amt)&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me!! Many thanks!&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230473#M82293</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2011-02-25T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230474#M82294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(gltr_acc='06200' ,sum({$&amp;lt;pt_part_type = 'R*'&amp;gt;} gltr_amt))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230474#M82294</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-25T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230475#M82295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepak,&lt;/P&gt;&lt;P&gt;Unfortunately it still brings back zero!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230475#M82295</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2011-02-25T10:55:58Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230476#M82296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Dayana,&lt;/P&gt;&lt;P&gt;Where are you using this expression, pivot table or textobject&lt;/P&gt;&lt;P&gt;if you are using it in pivot table use it in below way&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;B&gt;if&lt;/B&gt;(&lt;B&gt;Account&lt;/B&gt;='1221',&lt;B&gt;sum&lt;/B&gt;({$&amp;lt;&lt;B&gt;Type&lt;/B&gt; = {&lt;B&gt;"R*"&lt;/B&gt;}&amp;gt;} &lt;B&gt;Value&lt;/B&gt; &lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of single quotes and % it should be double quotes and * (I made a mistake of puttting single quotes in the above case)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230476#M82296</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-25T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230477#M82297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepak,&lt;/P&gt;&lt;P&gt;It was a straight table so that did the job! Thank you!&lt;/P&gt;&lt;P&gt;For my next question, this works perfectly for when the only account is 06200, but now I need a sum of all the other accounts (with no filter) plus this value.. Obviously the IF statement will only sum value if the account is 06200.&lt;/P&gt;&lt;P&gt;So my data would look like this:&lt;/P&gt;&lt;P&gt;Product Value&lt;BR /&gt;Prod1 10,0000&lt;/P&gt;&lt;P&gt;(The value would sum all the account codes, but only take the value for account 06200 where the type begins with R)&lt;/P&gt;&lt;P&gt;Many thanks for your help!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230477#M82297</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2011-02-25T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230478#M82298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Dayna,&lt;/P&gt;&lt;P&gt;I think doing this at script level will make life easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Account&amp;lt;&amp;gt;'06200','N',if(wildmatch(Type,'R*')&amp;gt;0,'Y',null())) &lt;B&gt;as&lt;/B&gt; SubType&lt;/P&gt;&lt;P&gt;In the above code we are putting all codes other than 06200 as N and for code 06200 with R* as Y and rest as null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Front end we can write Sum( {&amp;lt;SubType ={"Y","N"}&amp;gt;} Values)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230478#M82298</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-25T11:29:18Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230479#M82299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepak,&lt;/P&gt;&lt;P&gt;I agree with you, unfortunately my data can't be joined and the three fields are in 3 different tables! Sod's law.&lt;/P&gt;&lt;P&gt;I got around the above with this:&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;gltr_acc&lt;/B&gt;='06200',&lt;B&gt;sum&lt;/B&gt;({$&amp;lt;&lt;B&gt;pt_part_type&lt;/B&gt; = {&lt;B&gt;"R*"&lt;/B&gt;}&amp;gt;} &lt;B&gt;gltr_amt&lt;/B&gt;),&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;gltr_acc&lt;/B&gt; &amp;lt;&amp;gt; '06200',&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;gltr_amt&lt;/B&gt;)))&lt;/P&gt;&lt;P&gt;However, I've noticed that if I take gltr_acc out as a dimension it doesn't work.. Any ideas?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230479#M82299</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2011-02-25T11:31:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230480#M82300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Dayna ,&lt;/P&gt;&lt;P&gt;I got a solution for this &lt;IMG alt="Lightning" src="http://community.qlik.com/emoticons/emotion-60.gif" /&gt;. I hope this helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create field at script level like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Account&amp;lt;&amp;gt;'1221','N','Y') &lt;B&gt;as&lt;/B&gt; Rem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Expression :&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Account={1221},Type={"R*"}&amp;gt; + &amp;lt;Rem={"N"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 12:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230480#M82300</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-25T12:33:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis / Like Operator Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230481#M82301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak, your a star!! Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Like-Operator-Help/m-p/230481#M82301</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2011-02-25T13:22:46Z</dc:date>
    </item>
  </channel>
</rss>

