<?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 Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957868#M328968</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;Please find the dataset in image attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted calculate the Profit / loss of those script whose quantity is 0 (i.e (Sell Qty - Buy Qty) = 0). I could achieve this using the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(if(([Sell Qty] - [Buy Qty])=0,(([Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to write this in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Manoj S nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Dec 2015 12:31:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-05T12:31:52Z</dc:date>
    <item>
      <title>Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957868#M328968</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;Please find the dataset in image attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted calculate the Profit / loss of those script whose quantity is 0 (i.e (Sell Qty - Buy Qty) = 0). I could achieve this using the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(if(([Sell Qty] - [Buy Qty])=0,(([Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to write this in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Manoj S nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 12:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957868#M328968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-05T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957869#M328969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis usually requires a somewhat knowledge of the fields and relation between fields and tables, so I can only guess what you might need here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If script is the field name of your chart dimension, maybe try an advanced search on this field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( &lt;STRONG&gt;{&amp;lt;script = {"=[Sell Qty] - [Buy Qty]=0"} &amp;gt;}&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 12:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957869#M328969</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-05T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957870#M328970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl. it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Scrip = {"=[Sell Qty] - [Buy Qty]=0"} &amp;gt;} ([Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 12:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957870#M328970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-05T12:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957871#M328971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl one more question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to write two condition in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Sell Price] - [Buy price]&amp;lt;0&lt;/P&gt;&lt;P&gt;[Sell Qty] - [Buy Qty] = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this not working&amp;nbsp; : &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Scrip = {"=[Sell Price] - [Buy price]&amp;lt;0,=[Sell Qty] - [Buy Qty] = 0 "} &amp;gt;} ([Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also can you suggest me good link for Set Analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 13:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957871#M328971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-05T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957872#M328972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try&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;=Sum( {&amp;lt;Scrip = {"= ([Sell Price] - [Buy price]&amp;lt;0) AND&amp;nbsp; ([Sell Qty] - [Buy Qty] = 0)"} &amp;gt;} ([Sell Qty]*[Sell Price]) - ([Buy Qty]*[Buy price]))&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;There are some useful threads and posts available, e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8039"&gt;A Beginners' Introduction to Set Analysis (video)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://aftersync.com/blog/category/set-analysis" title="http://aftersync.com/blog/category/set-analysis"&gt;Set Analysis Archives • AfterSync - QlikView Consulting&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 13:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/957872#M328972</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-05T13:34:58Z</dc:date>
    </item>
  </channel>
</rss>

