<?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: Lookup - find combination in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976874#M648451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello DataDigger,&lt;/P&gt;&lt;P&gt;Definitely it is not a straight forward approach, and you might need little bit of tweaking around with the comment field. Please find attached eg file which i tried might be of any help. Based on my assumption thinking that the Reg numbers in the comment field will be seen after the word 'For'. Taking this as a consideration i have done a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 19:05:16 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2015-10-14T19:05:16Z</dc:date>
    <item>
      <title>Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976872#M648449</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;Got a new problem that can't resolve by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer database contains 1. car info 2. fact table with car number in comment field.&lt;/P&gt;&lt;P&gt;Problem: need some text parsing to create link between 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cars:&lt;/P&gt;&lt;P&gt;registrationNo, group&lt;/P&gt;&lt;P&gt;ABC123, Transport&lt;BR /&gt;BC234, Expedition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;facts:&lt;/P&gt;&lt;P&gt;date, amount, comment&lt;/P&gt;&lt;P&gt;2015-01-01, 100, Insurance expenses for ABC 123&lt;/P&gt;&lt;P&gt;2015-01-02, 200, Insurance expenses for BC234 (document no 123456)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to assign car group for every fact row.&lt;/P&gt;&lt;P&gt;Preferred result table:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date, amount, comment, group&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2015-01-01, 100, Insurance expenses for ABC 123, Transport&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2015-01-02, 200, Insurance expenses for BC234 (document no 123456), Expedition&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;There are additional problems that make task even worse: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. registration numbers in comments are entered not uniformly - sometimes they contain spaces and sometimes not&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. registratios numbers in comments varry in length - 5 or 6 chars (if without spaces)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. registration numbers in comments might be in any place of comment (usually end but sometimes mid)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have gut feeling like i need some mix of lookup and match functions just can't figure out how to do it exactly.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976872#M648449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976873#M648450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can tell, first, you need to find a way to get the RegNo in a uniform format. It seems from the Car table that they prefer to be without spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could load both tables, then create a new table that links them by loading the comments field and the RegNo field, using a key that is an if statement with the wildcard match. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;comment,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;registrationNo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch([comment], '*[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;registrationNo]*')=1, [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;registrationNo}) as KeyField&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 18:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976873#M648450</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2015-10-14T18:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976874#M648451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello DataDigger,&lt;/P&gt;&lt;P&gt;Definitely it is not a straight forward approach, and you might need little bit of tweaking around with the comment field. Please find attached eg file which i tried might be of any help. Based on my assumption thinking that the Reg numbers in the comment field will be seen after the word 'For'. Taking this as a consideration i have done a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976874#M648451</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-10-14T19:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976875#M648452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for uncarefully selected set of data for an example. I accidently picked 2 similar texts.&lt;/P&gt;&lt;P&gt;Assumption about 'for' is not applicable here as comment may wildly warry.&lt;/P&gt;&lt;P&gt;Also i can't see any attached file &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976875#M648452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T19:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976876#M648453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you crystles for an idea, will try it tomorrow and will post the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976876#M648453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T19:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976877#M648454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did attached the file. However, as said i have used For word to get the Registration Numbers so you can ignore that then. Just wondering did you try crystles if condition?? Did you get what you are looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976877#M648454</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-10-15T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976878#M648455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;crystles your statement like this :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;New Table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;comment,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;registrationNo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(wildmatch(trim([comment]), '*[&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;registrationNo]*')=1, [&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;registrationNo}) as KeyField&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976878#M648455</guid>
      <dc:creator>ahmar811</dc:creator>
      <dc:date>2015-10-15T10:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976879#M648456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several threads here in the forum with similar requests. One of the threads that covers some different approaches is&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/185644"&gt;Lookup, Wildmatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to create a lookup table with all combinations of registration numbers (i.e. with different spelling, with and without spaces).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976879#M648456</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-15T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - find combination</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976880#M648457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I thought about putting the trim on the comments section, but I did not think it would matter as much since I was doing a Wildmatch. Trimming the comments field wouldn't have any advantage I think, but it could help find the Code faster.&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, 15 Oct 2015 14:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-find-combination/m-p/976880#M648457</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2015-10-15T14:01:10Z</dc:date>
    </item>
  </channel>
</rss>

