<?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: Need Help for an Intersection Problem in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701727#M253254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes thank you. but i need an aggr expression in a textbox for the result &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only if PART exist in Factory 100 and PART exist in Factory 200 then make the Price Difference #&lt;/P&gt;&lt;P&gt;the result is the SUM: in this exampe 10+4 = 14 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 10:17:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-18T10:17:35Z</dc:date>
    <item>
      <title>Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701723#M253250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem with an intersection in Set Analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one Table with Parts, Prices and Factorys.&lt;/P&gt;&lt;P&gt;I need the difference beetween the Prices in two different Factories for the Same Part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the correct Expression with Aggr in a Text Field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Details in the Example (.qvw)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 09:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701723#M253250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701724#M253251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF(sum({&amp;lt;Factory= {'200'}&amp;gt;} Price) &amp;gt; sum({&amp;lt;Factory= {'100'}&amp;gt;} Price), sum({&amp;lt;Factory= {'200'}&amp;gt;} Price)- sum({&amp;lt;Factory= {'100'}&amp;gt;} Price))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(IF(sum({&amp;lt;Factory= {'200'}&amp;gt;} Price) &amp;gt; sum({&amp;lt;Factory= {'100'}&amp;gt;} Price), sum({&amp;lt;Factory= {'200'}&amp;gt;} Price)- sum({&amp;lt;Factory= {'100'}&amp;gt;} Price)),Part, Factory)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 09:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701724#M253251</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701725#M253252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If( (sum({&amp;lt;Factory= {'200'}&amp;gt;} Price) -sum({&amp;lt;Factory= {'100'}&amp;gt;} Price&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;gt;0&lt;/STRONG&gt;,sum({&amp;lt;Factory= {'200'}&amp;gt;} Price) -sum({&amp;lt;Factory= {'100'}&amp;gt;} Price))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 09:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701725#M253252</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-18T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701726#M253253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Factory= {'200'}&amp;gt;} Price)&amp;gt;sum({&amp;lt;Factory= {'100'}&amp;gt;} Price),(sum({&amp;lt;Factory= {'200'}&amp;gt;} Price))-(sum({&amp;lt;Factory= {'100'}&amp;gt;} Price)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60771_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 09:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701726#M253253</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2014-06-18T09:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701727#M253254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes thank you. but i need an aggr expression in a textbox for the result &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only if PART exist in Factory 100 and PART exist in Factory 200 then make the Price Difference #&lt;/P&gt;&lt;P&gt;the result is the SUM: in this exampe 10+4 = 14 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701727#M253254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701728#M253255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=SUM(Aggr(IF(sum({&amp;lt;Factory= {'200'}&amp;gt;} Price) &amp;gt; sum({&amp;lt;Factory= {'100'}&amp;gt;} Price), sum({&amp;lt;Factory= {'200'}&amp;gt;} Price)- sum({&amp;lt;Factory= {'100'}&amp;gt;} Price)),Part, Factory))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701728#M253255</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701729#M253256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, but the result of your expression is "175" ... the correct result is 14 (screenshot)&lt;IMG alt="aggr.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60815_aggr.PNG.png" style="width: 620px; height: 191px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701729#M253256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701730#M253257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate little more what are expecting ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701730#M253257</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701731#M253258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the price difference beetween the parts who exist in Factory 100 and Factory 200. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the part 666 and 777 exist in both Factorys but in factory 200 is the part 666 and 777 more expensive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need an expression for following conditions: &lt;/P&gt;&lt;P&gt;- Parts are the SAME - Part exist in both factorys&lt;/P&gt;&lt;P&gt;- If in Factory 200 the price is higher than in Factory 100 then i need the sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this example is 14 (see screenshot above)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701731#M253258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701732#M253259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SUM({&amp;lt;Factory = {'200'}, Part = P({1&amp;lt;Factory = {'100'}&amp;gt;})&amp;gt;}Price) &amp;gt; SUM({&amp;lt;Factory = {'100'}, Part = P({1&amp;lt;Factory = {'200'}&amp;gt;})&amp;gt;}Price),&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Factory = {'200'}, Part = P({1&amp;lt;Factory = {'100'}&amp;gt;})&amp;gt;}Price) - SUM({&amp;lt;Factory = {'100'}, Part = P({1&amp;lt;Factory = {'200'}&amp;gt;})&amp;gt;}Price))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701732#M253259</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T12:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help for an Intersection Problem in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701733#M253260</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;Here is a solution for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60826_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Diff:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Factory = {'200'}, Part = P({&amp;lt;Factory= {'100'}&amp;gt; }) *&amp;nbsp;&amp;nbsp;&amp;nbsp; P({&amp;lt;Factory= {'200'}&amp;gt;}) &amp;gt;} Price) &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Factory = {'100'}, Part = P({&amp;lt;Factory= {'100'}&amp;gt; }) *&amp;nbsp;&amp;nbsp;&amp;nbsp; P({&amp;lt;Factory= {'200'}&amp;gt;}) &amp;gt;} Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Miikka Koskinen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 14:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-for-an-Intersection-Problem-in-Set-Analysis/m-p/701733#M253260</guid>
      <dc:creator>miikkaqlick</dc:creator>
      <dc:date>2014-06-18T14:19:15Z</dc:date>
    </item>
  </channel>
</rss>

