<?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 Splitting a field depending on a field in a second table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296994#M1186777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok. this is sort of what I had in mind, but I cannot find the syntax for the Cross join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help again, please? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 12:01:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-28T12:01:44Z</dc:date>
    <item>
      <title>Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296991#M1186774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;One with the make&amp;nbsp; of cars (eg Volkswagen, Alfa Romeo) and the other with Models in the form of Volkswagen Polo, Alfa Romeo Guilietta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a key on 'Make', but don't know how to split the make and model in the second table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SUBFIELD works, but only for one word Makes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone an idea. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 11:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296991#M1186774</guid>
      <dc:creator />
      <dc:date>2011-09-28T11:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296992#M1186775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using len and right functions. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right(Model,(len(Model)-len(Make)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len(Model)-len(Make) should give you the number of characters you need to keep after the Make. If there is an extra space at the begining change it to &lt;/P&gt;&lt;P&gt;(len(Model)-len(Make))+1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 11:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296992#M1186775</guid>
      <dc:creator />
      <dc:date>2011-09-28T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296993#M1186776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it's a bit messy, but you could do some logic to find which value&lt;/P&gt;&lt;P&gt;in the 1st table matches each given value in the 2nd table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept is to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CROSS JOIN the AllMakes table onto the AllModels table.&amp;nbsp; So, now you&lt;/P&gt;&lt;P&gt;have AllCombinations, containing every combination of Make and Model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. JOIN to that table a flag that specifies when the Model begins with&lt;/P&gt;&lt;P&gt;the Make i.e. something like&lt;/P&gt;&lt;P&gt;JOIN (AllCombinations)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; make,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (left(make,len(model))=model) AS IsThisMake&lt;/P&gt;&lt;P&gt;Resident AllCombinations;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Do a KEEP to get rid of all records except those for which IsThisMake&lt;/P&gt;&lt;P&gt;is true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 11:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296993#M1186776</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2011-09-28T11:18:10Z</dc:date>
    </item>
    <item>
      <title>Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296994#M1186777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok. this is sort of what I had in mind, but I cannot find the syntax for the Cross join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help again, please? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296994#M1186777</guid>
      <dc:creator />
      <dc:date>2011-09-28T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296995#M1186779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad!&amp;nbsp; I meant OUTER JOIN, not CROSS JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 23:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296995#M1186779</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2011-09-28T23:39:24Z</dc:date>
    </item>
    <item>
      <title>Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296996#M1186781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use wildcard mapping as shown in the QV Cookbook. The mapping example in the cookbook works fine, but there is a newer simplified version attached to this thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/146315#146315"&gt;http://community.qlik.com/message/146315&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just load up your wildmatch table with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make &amp;amp;amp; '*', make&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 00:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296996#M1186781</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-09-29T00:51:32Z</dc:date>
    </item>
    <item>
      <title>Splitting a field depending on a field in a second table</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296997#M1186783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to all who tried helping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With help from&amp;nbsp; a colleague we solved it as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LET&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;NumberOfRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('MAKE');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; FOR&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(NumberOfRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;C&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('Make', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; , 'MAKE');&lt;BR /&gt;MODEL: &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; @2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModelName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; Len&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModelLength&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp; '$(C)' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Make&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; Len&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('$(C)') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MakeLength&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; Right&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;)-(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('$(C)')+1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Model&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.autozine.nl/enquete_verkoop.html"&gt;http://www.autozine.nl/enquete_verkoop.html&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; @1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; where&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Like&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; '*$(C)*' ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 1;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field-depending-on-a-field-in-a-second-table/m-p/296997#M1186783</guid>
      <dc:creator />
      <dc:date>2011-10-05T10:17:21Z</dc:date>
    </item>
  </channel>
</rss>

