<?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 based on a value range in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241536#M28656</link>
    <description>ok I understood your problem
&lt;BR /&gt;Maybe you can use a tfilter to check if the rate value is between 0.6 and 1.
&lt;BR /&gt;Flow filter (the output of your tFilter)&amp;gt;you can use a tIntervalMatch on the amount value. 
&lt;BR /&gt;Flow rejet (the output of your tFilter)&amp;gt; you can put the value to 5.</description>
    <pubDate>Tue, 04 Mar 2008 18:14:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-04T18:14:06Z</dc:date>
    <item>
      <title>Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241527#M28647</link>
      <description>Hello, I'm new to Talend, and I was wondering how to perform a join from a value to a value range. For instance:
&lt;BR /&gt;I have a source table with a column "amount" with the following values:
&lt;BR /&gt;1
&lt;BR /&gt;2
&lt;BR /&gt;54
&lt;BR /&gt;220
&lt;BR /&gt;I have a lookup table defined with the following columns
&lt;BR /&gt;
&lt;BR /&gt;ID high low
&lt;BR /&gt;1 15 0
&lt;BR /&gt;2 50 16
&lt;BR /&gt;3 100 51
&lt;BR /&gt;4 500 101
&lt;BR /&gt;
&lt;BR /&gt;I wanted to perform a lookup using a tmap object, mapping amount to a specific id so the results should yield:
&lt;BR /&gt;1
&lt;BR /&gt;1
&lt;BR /&gt;3
&lt;BR /&gt;4
&lt;BR /&gt;Is this possible?
&lt;BR /&gt;Any help would be appreciated.
&lt;BR /&gt;Thanks and regards,
&lt;BR /&gt;-Frank</description>
      <pubDate>Sat, 16 Nov 2024 14:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241527#M28647</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241528#M28648</link>
      <description>Hello Franck,
&lt;BR /&gt;tIntervalMatch does exactly that.
&lt;BR /&gt;Please refer to the documentation on tIntervalMatch and its sample scenario
&lt;BR /&gt;regards,
&lt;BR /&gt;Benjamin</description>
      <pubDate>Tue, 04 Mar 2008 01:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241528#M28648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T01:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241529#M28649</link>
      <description>Hah!&lt;BR /&gt;I just found it and was about to reply when I saw the message.  I appreciate the reply&lt;BR /&gt;Thanks,&lt;BR /&gt;-Frank</description>
      <pubDate>Tue, 04 Mar 2008 01:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241529#M28649</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-03-04T01:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241530#M28650</link>
      <description>Maybe someone here can help.  I have a similar problem, but I have 2 lookup fields to deal with.  So I need to lookup based on 2 ranges.  The tIntervalMatch only handles 1 lookup field.  Has anyone had to do this before?</description>
      <pubDate>Tue, 04 Mar 2008 16:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241530#M28650</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-03-04T16:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241531#M28651</link>
      <description>with two successive tIntervalMatch</description>
      <pubDate>Tue, 04 Mar 2008 17:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241531#M28651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T17:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241532#M28652</link>
      <description>I guess I wasn't clear.  The lookup fields are on the same table.  so I wanted to do a lookup on a table with 5 columns.  The first columns is an ID, and the other four are two HIGH limit and LOW limit columns for different values.  This means that the ID is based on if the lookup of the first value falls between the the first set of High-lows AND the lookup for the second value falls between the second set of high-lows.</description>
      <pubDate>Tue, 04 Mar 2008 17:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241532#M28652</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-03-04T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241533#M28653</link>
      <description>I don't really understand how your lookup file is. But I think that a possible solution is to split your file in two flow with a tMap.&lt;BR /&gt;Can you give me the first line of your two files (main and lookup)?</description>
      <pubDate>Tue, 04 Mar 2008 17:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241533#M28653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241534#M28654</link>
      <description>Okay to use the example above, 
&lt;BR /&gt;I have a source table with a column "amount", and a column "rate" with the following values:
&lt;BR /&gt;amount rate
&lt;BR /&gt;1 .50
&lt;BR /&gt;2 .80
&lt;BR /&gt;54 .40
&lt;BR /&gt;220 .90
&lt;BR /&gt;I have a lookup table defined with the following columns. Row 5 is the value I would like to assign if the lookup fails. (I understand that this may need to be done in a separate step) 
&lt;BR /&gt;ID high_1 low_1 high_2 low_2
&lt;BR /&gt;1 15 0 1 .90
&lt;BR /&gt;2 50 16 1 .80
&lt;BR /&gt;3 100 51 1 .70
&lt;BR /&gt;4 500 101 1 .60
&lt;BR /&gt;5 -1 -1 -1 -1.0
&lt;BR /&gt;I wanted to perform a lookup where the results should yield:
&lt;BR /&gt;5
&lt;BR /&gt;2
&lt;BR /&gt;5
&lt;BR /&gt;4
&lt;BR /&gt;Is this possible, or will I need to do some custom work?</description>
      <pubDate>Tue, 04 Mar 2008 17:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241534#M28654</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-03-04T17:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241535#M28655</link>
      <description>I don't understand the result you need.
&lt;BR /&gt;You want to check the amount and the rate? In which order?
&lt;BR /&gt;Because in your result you seem to use only the second part (high_2,low_2) to check only the rate</description>
      <pubDate>Tue, 04 Mar 2008 18:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241535#M28655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241536#M28656</link>
      <description>ok I understood your problem
&lt;BR /&gt;Maybe you can use a tfilter to check if the rate value is between 0.6 and 1.
&lt;BR /&gt;Flow filter (the output of your tFilter)&amp;gt;you can use a tIntervalMatch on the amount value. 
&lt;BR /&gt;Flow rejet (the output of your tFilter)&amp;gt; you can put the value to 5.</description>
      <pubDate>Tue, 04 Mar 2008 18:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241536#M28656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241537#M28657</link>
      <description>My Apologies.  Yes, the second value should be 5, not 2.  I pasted the wrong text.  This should result in:&lt;BR /&gt;5&lt;BR /&gt;5&lt;BR /&gt;5&lt;BR /&gt;4</description>
      <pubDate>Tue, 04 Mar 2008 18:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241537#M28657</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-03-04T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241538#M28658</link>
      <description>ok I will try to do it, wait a moment please</description>
      <pubDate>Tue, 04 Mar 2008 18:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241538#M28658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T18:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup based on a value range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241539#M28659</link>
      <description>I think the main difficulty doesn't come from your double file but from the fact that your rate interval isn't really an interval.
&lt;BR /&gt;I'm not able to do it at this moment. I'm sorry</description>
      <pubDate>Tue, 04 Mar 2008 18:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-based-on-a-value-range/m-p/2241539#M28659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-04T18:41:41Z</dc:date>
    </item>
  </channel>
</rss>

