<?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: Data Mapper (tHMap) - get the next value in loop based on date filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-tHMap-get-the-next-value-in-loop-based-on-date/m-p/2337383#M105731</link>
    <description>&lt;P&gt;Also one extra note: I have also tried with the IndexRangeLoop but since the index always is different i can't use a fixed value in the start index. I have tried to do something like LoopIndex function to get the current index but that is not allowed..&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 15:37:53 GMT</pubDate>
    <dc:creator>SMR040</dc:creator>
    <dc:date>2022-12-08T15:37:53Z</dc:date>
    <item>
      <title>Data Mapper (tHMap) - get the next value in loop based on date filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-tHMap-get-the-next-value-in-loop-based-on-date/m-p/2337382#M105730</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the requirement seems simple I have not yet found the complete solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is the following:&lt;/P&gt;&lt;P&gt;As an input i have 0:* where a block with information is processed, this block also contains a due_date. As an output i also have a block with 0:* (also tried 0:1) where i want to get the upcoming due_date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: (YYYY-MM-dd)&lt;/P&gt;&lt;P&gt;input due_date = 2022-11-30 -- this one should not be shown because it is already passed&lt;/P&gt;&lt;P&gt;input due_date = 2022-12-30 -- this one should be shown because today is 2022-12-08&lt;/P&gt;&lt;P&gt;input due_date = 2023-01-30 -- this one should NOT be shown because i only want the NEXT single block, not ALL upcoming blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i have done so far is in the SimpleLoop --&amp;gt; Filter i have a 'Lesser' to check if current date is smaller than the date in the input and this logic works fine because i always get the NEXT date. but the problem seems to be that i cannot limit that result into only 1 occurrence which is the nearest to today. i always get ALL the blocks in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aEzJGAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141504i703B3988ED86BD81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aEzJGAA0.png" alt="0695b00000aEzJGAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above validation i have put it in the Validate tab, but when i had it on (0:*) i had it in the SimpleLoop --&amp;gt; Filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My output is like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aEzDTAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129856i18F5A21E5FC12891/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aEzDTAA0.png" alt="0695b00000aEzDTAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my question is how can i limit the loop to show only the first block. I know there is a FixedLoop component but I cannot seem to combine that with the logic to check the date since the FixedLoop function does not have a filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-tHMap-get-the-next-value-in-loop-based-on-date/m-p/2337382#M105730</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2024-11-15T22:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper (tHMap) - get the next value in loop based on date filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-tHMap-get-the-next-value-in-loop-based-on-date/m-p/2337383#M105731</link>
      <description>&lt;P&gt;Also one extra note: I have also tried with the IndexRangeLoop but since the index always is different i can't use a fixed value in the start index. I have tried to do something like LoopIndex function to get the current index but that is not allowed..&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 15:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-tHMap-get-the-next-value-in-loop-based-on-date/m-p/2337383#M105731</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2022-12-08T15:37:53Z</dc:date>
    </item>
  </channel>
</rss>

