<?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 Field A = Field B query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382627#M142800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something here...&amp;nbsp; I'll take a look, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followup: Tried.&amp;nbsp; I wish I was wrong...&amp;nbsp; The example with set analysis works only if both dimensions are in the same table.&amp;nbsp; Usually it is not the case, and it was - easy to resove in the script as well.&amp;nbsp; So, using "if" is the only solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 21:51:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-30T21:51:11Z</dc:date>
    <item>
      <title>Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382621#M142794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a straight table using Set analsis where it sums the quantity based on whether the Supplier Code field is equal to the Prime Supplier Field, the Secondary Supplier Field or Tertiary Supplier Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this i've been using the below Expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Title&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression&lt;/P&gt;&lt;P&gt;Prime Supplier Qty =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;[Supplier Code]={'=[Supplier Code]=[Prime Supplier]'}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;Secondary Supplier Qty =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;[Supplier Code]={'=[Supplier Code]=[Secondary Supplier]'}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;Tertiary Supplier Qty =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;[Supplier Code]={'=[Supplier Code]=[Tertiary Supplier]'}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it doesn't seem to be working correctly;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21012" class="jive-image-thumbnail jive-image" height="322" onclick="" alt="CrossTable4.bmp" src="https://community.qlik.com/legacyfs/online/21012_CrossTable4.bmp" style="height: 322px; width: 847.3684210526317px;" width="847" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If also written the expression without set analysis (See right column) and it seems to work so can someone tell me what i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382621#M142794</guid>
      <dc:creator />
      <dc:date>2012-08-30T15:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382622#M142795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use " instead '.&lt;/P&gt;&lt;P&gt; =Sum({$&amp;lt;[Supplier Code]={"=[Supplier Code]=[Prime Supplier]"}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382622#M142795</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-30T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382623#M142796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I started reading, wanted to suggest the solution without set analysis - but later saw that you had it already.&amp;nbsp; This is the correct way in this case.&amp;nbsp; Set analysis &lt;STRONG&gt;does not evaluate data per dimension&lt;/STRONG&gt;, hence it cannot be used in cases like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382623#M142796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T16:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382624#M142797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to "evaluate data per dimension". These set expressions uses search capabilities to reduce the set with only the values where [Supplier Code]=[Prime Supplier].&lt;/P&gt;&lt;P&gt;Then Sum function is used over this set in a chart with dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it can't be used in a such way ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382624#M142797</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-30T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382625#M142798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, set analysis syntax [Supplier Code]=[Prime Supplier] is fine.&amp;nbsp; Or [Supplier Code]=P([Prime Supplier]).&lt;/P&gt;&lt;P&gt;In this case, where [Supplier Code] is a chart's dimension, you'll get the same result in each line because set "doesn't know" anything about charts and dimensions.&amp;nbsp; It evaluates overall data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382625#M142798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382626#M142799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just look at the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 17:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382626#M142799</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-30T17:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382627#M142800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something here...&amp;nbsp; I'll take a look, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followup: Tried.&amp;nbsp; I wish I was wrong...&amp;nbsp; The example with set analysis works only if both dimensions are in the same table.&amp;nbsp; Usually it is not the case, and it was - easy to resove in the script as well.&amp;nbsp; So, using "if" is the only solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 21:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382627#M142800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T21:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382628#M142801</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;Hope attached file helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 04:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382628#M142801</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-08-31T04:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382629#M142802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael and Whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried updating the expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Supplier Code]={"=[Supplier Code]=[Prime Supplier]"}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's still showing 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite happy to use the Sum(If( expression if that's the correct way? I thought i had read that "Sum IF" had a higher overhead on the processor than set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, using SumIf doesn't seem to TOTAL correctly at the top? (Please see .bmp in original post for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had originally used &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt; [Supplier Code]=P([Prime Supplier])&lt;/SPAN&gt; within the expression, however, unless a selection was made, the quantities were totalled across all suppliers. Please see code '000033' below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with no selection made;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21076" class="jive-image-thumbnail jive-image" onclick="" alt="CrossTable5.bmp" src="https://community.qlik.com/legacyfs/online/21076_CrossTable5.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with the item code selected;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21077" class="jive-image-thumbnail jive-image" onclick="" alt="CrossTable6.bmp" src="https://community.qlik.com/legacyfs/online/21077_CrossTable6.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the right column (Secondary Supplier) changes from 82 to 0 when the item code is selected...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 08:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382629#M142802</guid>
      <dc:creator />
      <dc:date>2012-08-31T08:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382630#M142803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming this is because p() analyses the selection, hence why i wanted to change the expression to not use P().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried "Sum({$&amp;lt;[Supplier Code]=[Prime Supplier]&amp;gt;} [Orig. Ordered Qty])" but again, it evaluates to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21078" class="jive-image-thumbnail jive-image" onclick="" alt="CrossTable7.bmp" src="https://community.qlik.com/legacyfs/online/21078_CrossTable7.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 08:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382630#M142803</guid>
      <dc:creator />
      <dc:date>2012-08-31T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382631#M142804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to figure out how to do this but i'm clearly missing a field within the expression. I need to include the field [Item Code] in expression somewhere so that it can identify the correct Primary and Secondary Supplier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm trying to achieve overall is the below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21101" alt="CrossTable8.bmp" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/21101_CrossTable8.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that we can identify the quantities and spend by Item from each supplier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still using the set analysis expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Supplier Code]={"=[Supplier Code]=&amp;lt;[Item Code]&amp;gt;[Prime Supplier]"}&amp;gt;}[Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as this works when a single line is selected. However, when no selections are made, the table shows all values as 0 for those set analysis (as shown above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i need it to evaluate the Item Code as well, how do i incorporate this into the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 12:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382631#M142804</guid>
      <dc:creator />
      <dc:date>2012-08-31T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382632#M142805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's strange. In a simple example everything works fine. I think there is some problems with nulls and table connections or combination of dimensions in this chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also try text comparison in sets:&lt;/P&gt;&lt;P&gt; Sum({$&amp;lt;[Supplier Code]={"=text([Supplier Code])=text([Prime Supplier])"}&amp;gt;} [Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With "ifs" you can try something like this (it gives correct totals):&lt;/P&gt;&lt;P&gt;=Sum(aggr(if([Supplier Code]=[Prime Supplier], Sum([Orig. Ordered Qty]), null()), [Item Code]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' use [Item Code] as the lowest level demension that represents row of table. You could have to correct that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382632#M142805</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-31T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382633#M142806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the file so you can see what i mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With no selections made, the Qty columns for Prime, Secondary and Tertiary are shown as blank (not always though, as is the case with 000301).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you select an item code, those columns populate with the correct figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only assume that this is because when no selections are made, the Set Analysis cannot determine the item code and therefore cannot determine who the Prime, Secondary and Tertiary Suppliers are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 14:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382633#M142806</guid>
      <dc:creator />
      <dc:date>2012-08-31T14:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382634#M142807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, I've found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Supplier Code] and [Prime Supplier] are fields from different tables connected by Item Code.&lt;/P&gt;&lt;P&gt;As you can see on the attached screen (tablebox) the relations between them are ambigous&lt;/P&gt;&lt;P&gt;(there are many paths through Item Code except 000301 and supplier code 101883).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think such logic of sets unfortunately is not applicable in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 16:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382634#M142807</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-31T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382635#M142808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree, set analysis is not applicable here.&amp;nbsp; Looks like it may work in situation when all fields in set are in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 00:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382635#M142808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-01T00:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382636#M142809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your problem could be solved if there was a way to overcome the ambiguity.&lt;/P&gt;&lt;P&gt;May be, some id field that distinguish one shipmentfact from another could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use aggr() explicitly.&lt;/P&gt;&lt;P&gt;But may be, it's time for refactoring the data model...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 19:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382636#M142809</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-02T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382637#M142810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone explain why they need to be in the same field for set analysis to work as the relationship between the tables is one to many? I don't doubt that you're right, i just don't undertsand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain further; each item code can only have one Prime Supplier, one Secondary Supplier and one Tertiary Supplier. However, each item code may have been purchased from any supplier code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the relationship is one to many, regardless of who the items were purchased through, any item code will alway have the same Prime, Secondary and Tertiary Supplier. Doesn't this solve the ambiguity or am i missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21216" class="jive-image-thumbnail jive-image" onclick="" alt="CrossTable9.JPG" src="https://community.qlik.com/legacyfs/online/21216_CrossTable9.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help with this, I hope this doesn't come across as ungrateful as that is not my intention. I just want to understand why this isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 08:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382637#M142810</guid>
      <dc:creator />
      <dc:date>2012-09-03T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382638#M142811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone explain why they need to be in the same field for set analysis to work as the relationship between the tables is one to many? I don't doubt that you're right, i just don't undertsand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain further; each item code can only have one Prime Supplier, one Secondary Supplier and one Tertiary Supplier. However, each item code may have been purchased from any supplier code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the relationship is one to many, regardless of who the items were purchased through, any item code will alway have the same Prime, Secondary and Tertiary Supplier. Doesn't this solve the ambiguity or am i missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21220" class="jive-image-thumbnail jive-image" onclick="" alt="CrossTable9.JPG" src="https://community.qlik.com/legacyfs/online/21220_CrossTable9.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help with this, I hope this doesn't come across as ungrateful as that is not my intention. I just want to understand why this isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 09:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382638#M142811</guid>
      <dc:creator />
      <dc:date>2012-09-03T09:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382639#M142812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've joined the tables into one and have checked that there is nothing abnormal about the join. Each Item Code only has one Prime, Secondary and Tertiary Supplier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's still not working though...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find enclosed latest file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 09:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382639#M142812</guid>
      <dc:creator />
      <dc:date>2012-09-03T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis where Field A = Field B query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382640#M142813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question in &lt;SPAN style="text-decoration: underline;"&gt;not about joining&lt;/SPAN&gt;, i think.&lt;/P&gt;&lt;P&gt;Could you add some id field (for example rowno()) as I've mentioned before ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Becaue the Qty expression &lt;SPAN style="text-decoration: underline;"&gt;works&lt;/SPAN&gt; if I use something like this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;[Due Date]&lt;/SPAN&gt;={"=[Supplier Code]=[Prime Supplier]"}&amp;gt;}[Orig. Ordered Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With [Supplier Code]={"=[Supplier Code]=[Prime Supplier]"} you just &lt;STRONG&gt;CANN'T&lt;/STRONG&gt; select all records that have [Supplier Code]=[Prime Supplier] because there both situations:&lt;/P&gt;&lt;P&gt;[Supplier Code]=[Prime Supplier] and [Supplier Code]&amp;lt;&amp;gt;[Prime Supplier] with &lt;SPAN style="text-decoration: underline;"&gt;the same &lt;/SPAN&gt;[Supplier Code].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Due Date] in your simplified case distinguishes these situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 10:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-where-Field-A-Field-B-query/m-p/382640#M142813</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-03T10:14:51Z</dc:date>
    </item>
  </channel>
</rss>

