<?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 Joining Fields for Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324831#M1179541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post what you have so far, and some example data?&amp;nbsp; Much easier to help then...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 11:16:09 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-02-28T11:16:09Z</dc:date>
    <item>
      <title>Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324830#M1179540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table one holds information on Students, Program, School and College, &lt;/P&gt;&lt;P&gt;Table two the target table holds target records for NewHome/EU, NewOverseas, AllHome/EU, AllOverseas, NewHome/EU and NewOveseas by College, School and Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script they are joined by Program, however we need to be able to join both in a number of ways when doing set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;When the user selects the Home/EU filter (a field coming from the main table) the target number should display the All_Home/EU figures (a field coming from the target table).&amp;nbsp; &lt;/P&gt;&lt;P&gt;When the user selects the New filter (a field coming from the main table) the target number should display New_Home/EU + New_Overseas (Coming from the target table) figures. and so on……&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;I have in part got this to work, however when I look at the chart the points for the actual from the main table and targets do not match on the charts.&amp;nbsp; Any advice gratefully appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 11:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324830#M1179540</guid>
      <dc:creator />
      <dc:date>2012-02-28T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324831#M1179541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post what you have so far, and some example data?&amp;nbsp; Much easier to help then...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 11:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324831#M1179541</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-28T11:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324832#M1179542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 11:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324832#M1179542</guid>
      <dc:creator />
      <dc:date>2012-02-28T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324833#M1179543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, it's taken a while to unpick your script a bit and I think you need to look carefully at your data model. At this stage I'll try some generic advice as it's difficult to do more without an example of the source data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. (not really related to the question) Consider using ApplyMap() with source or inline mapping tables instead of your IF() statements. Much more expandable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Look at using a composite key to join the tables, something like &lt;STRONG&gt;&lt;EM&gt;PROGRAM_CODE &amp;amp; Residency &amp;amp; 'New/Continuing' AS %KEY&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; Obviously you will need to substitute Residency and 'New/Continuing' for the logic that defines these fields. Essentially, you need to build a key that joins all the bits of data you want to compare between the two tables. You will then need to remove PROGRAM_CODE from one of the tables - ensure you leave it in the one that is guaranteed to have all possible values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit - if you post some source data we can help further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324833#M1179543</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-28T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324834#M1179544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Hello Jason,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Thanks for getting back to me and thanks for the advice on ApplyMap I will have a bash at that this afternoon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;I have attached the source data and the latest version of the QVW file I have been working on. This is not the actual data as we will use as we are still building the data model and waiting for the server to be installed. So I put together this test data to enable me to start practicing before we get started. However these are some of the issues we will encounter. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;&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; Table one is the Conversion_Reg_Data file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table 2 is the 20120221PlannedNumbersTemplateSIDV1 file&amp;nbsp;&amp;nbsp; this table holds the target numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;The biggest problem for me is that I have no control on the format of the the target numbers in the planning template. I had thought about using a composite key, but I can’t work out how I will join these fields as the key is dependent upon the selection of conditions - Region Home/EU or Overseas and New or ALL with the main data!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Maria&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324834#M1179544</guid>
      <dc:creator />
      <dc:date>2012-02-28T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324835#M1179545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and look at this later for you as I have to finish something else right now.&amp;nbsp; However, after a first glance at your data you may want to look into QlikView's Crosstable function to transform some of your data in a more appropriate format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324835#M1179545</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-28T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Fields for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324836#M1179546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no rush with this as I am away on a course for a few days and wont get a chance to look at this again till Monday.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maria &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 09:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Fields-for-Set-Analysis/m-p/324836#M1179546</guid>
      <dc:creator />
      <dc:date>2012-02-29T09:29:08Z</dc:date>
    </item>
  </channel>
</rss>

