<?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: Set Analysis where one field equals another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706495#M474932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what you meant by using a variable for a single value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 14:57:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-19T14:57:10Z</dc:date>
    <item>
      <title>Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706492#M474929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a sum of values where two ID fields from different tables have the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I can get a valid value if I hardcode an ID like "MTG2" below:&lt;/P&gt;&lt;P&gt;sum(total {$&amp;lt;ProdID = {"MTG2"}&amp;gt;} Est_Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I want is to get the sum for that row where ProdID equals another field called AltProdID (in a different table, but with the same values as ProdID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest I found in the help documentation was something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(total {$&amp;lt;ProdID = {$(#=Only(AltProdID))}&amp;gt;} Est_Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that does not seem to work and just returns zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706492#M474929</guid>
      <dc:creator />
      <dc:date>2014-08-19T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706493#M474930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you get always one value from the field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AltProdID &lt;/SPAN&gt;or you can get several values.&lt;/P&gt;&lt;P&gt;if juste one value, you can use a variable, if multi value, your can use function "p" like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$&amp;lt;ProdID = p(AltProdID)}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706493#M474930</guid>
      <dc:creator>syukyo_zhu</dc:creator>
      <dc:date>2014-08-19T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706494#M474931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There can be multiple values. I tried the 'p' function and now it seems to sum all possible values, and not just those where the 2 fields are equal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706494#M474931</guid>
      <dc:creator />
      <dc:date>2014-08-19T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706495#M474932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what you meant by using a variable for a single value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706495#M474932</guid>
      <dc:creator />
      <dc:date>2014-08-19T14:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706496#M474933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i mean that you use eachtime juste a single value of your field in your sum.&lt;/P&gt;&lt;P&gt;why don't you try to join these two tables? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706496#M474933</guid>
      <dc:creator>syukyo_zhu</dc:creator>
      <dc:date>2014-08-19T15:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where one field equals another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706497#M474934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link below will help you to generate the set analysis that you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=" title="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa="&gt;Set Analysis Wizard for QlikView | qlikblog.at&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-one-field-equals-another-field/m-p/706497#M474934</guid>
      <dc:creator />
      <dc:date>2014-08-19T15:28:44Z</dc:date>
    </item>
  </channel>
</rss>

