<?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 FieldA = FieldB in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208499#M388005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ideally I would join them but given the data model I just can't do that. One date is coming from a master calendar built from many dates, canonical style as HIC would describe it. This new date comes from a newly introduced dataset that just doesnt flow with the other dates.This new table is at a very high level and it doesnt make sense to combine it with the more detailed data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 16:36:21 GMT</pubDate>
    <dc:creator>cbushey1</dc:creator>
    <dc:date>2016-10-20T16:36:21Z</dc:date>
    <item>
      <title>Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208495#M388001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to do set analysis where two different date fields have the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, I have a data model where I have two calendars, A, B. What I need to display in my chart is the sum of some fields from Table B and the Sum of fields from Table A, all having the dimensions of Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&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; TableB:&lt;/P&gt;&lt;P&gt;CasesCreated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProjectedAmount&lt;/P&gt;&lt;P&gt;CreateDate&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; BudgetDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expression I am trying to build is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CreateDate = BudgetDate&amp;gt;} ProjectedAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, this expression would return the total Projected amount where the dates are equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried using the above and with p() to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208495#M388001</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-20T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208496#M388002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use if statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If(CreateDate = BudgetDate, ProjectedAmount))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208496#M388002</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-20T15:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208497#M388003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With small amounts of data, the IF() solution might work. However, in a large application the performance will be extremely slow. Especially if the two tables are not associated - you are going to cause a Cartesian Join between the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not join the two tables by Date, or why not concatenate the two tables into a Concatenated Fact structure? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced Qlik techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208497#M388003</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-20T15:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208498#M388004</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: 13px;"&gt;SUM({&amp;lt;CreateDate = {"=CreateDate = BudgetDate"}&amp;gt;}ProjectedAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208498#M388004</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-10-20T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208499#M388005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ideally I would join them but given the data model I just can't do that. One date is coming from a master calendar built from many dates, canonical style as HIC would describe it. This new date comes from a newly introduced dataset that just doesnt flow with the other dates.This new table is at a very high level and it doesnt make sense to combine it with the more detailed data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208499#M388005</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-20T16:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208500#M388006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this approach as well and it didnt return any results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208500#M388006</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-20T16:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208501#M388007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide few lines of sample data ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208501#M388007</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-10-20T16:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208502#M388008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt build out all my expression etc but you should get the idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208502#M388008</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-20T17:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208503#M388009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I personally think that you need to use a canonical calendar here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208503#M388009</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-20T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208504#M388010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I thought that too, and keep coming back to that idea but I dont think it is feasible with our data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a MasterCalendar that is build from an Events table. This Events table is basically the Canonical table that HIC mentions. It has several dates coming to it from across the data model each being populated into a single field (EventDate) and being tagged with an EventName to represent that date. This works for all those data points because they can all be linked by an ActivityId. The problem is, my accountsummary data is at the account level and may not have any activities associated with it. So it doesnt really belong in this Events table (as no event may have occurred).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208504#M388010</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-20T17:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis FieldA = FieldB</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208505#M388011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do an if statement with a calculated dimension and then you don't need set analysis in your expressions at all.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Oleg is right though&lt;/SPAN&gt; it would be a Cartesian join that may not perform very well if you have a lot of data.&lt;/P&gt;&lt;P&gt;But your calculated dimension would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (CreateDate=BudgetDate,CreateDate,'')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can create your expressions normally as sum(ProjectedAmount) or whatever it may be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-FieldA-FieldB/m-p/1208505#M388011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-21T15:33:30Z</dc:date>
    </item>
  </channel>
</rss>

