<?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 Count filter value in column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229280#M20259</link>
    <description>&lt;P&gt;Hello friends, help me please.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1-&amp;nbsp;&lt;SPAN&gt;I have a tmap and in this component I make a filter.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img1.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1dv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149325iAAB8B5D9022E07E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1dv.jpg" alt="0683p000009M1dv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;filter:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img2.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1W8.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157860iF9159FF028AFC30B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1W8.jpg" alt="0683p000009M1W8.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2- I would like to store the amount of "D" or "N" generated by this filter to be used in a context.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sorry for my english&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:03:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:03:56Z</dc:date>
    <item>
      <title>Count filter value in column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229280#M20259</link>
      <description>&lt;P&gt;Hello friends, help me please.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1-&amp;nbsp;&lt;SPAN&gt;I have a tmap and in this component I make a filter.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img1.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1dv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149325iAAB8B5D9022E07E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1dv.jpg" alt="0683p000009M1dv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;filter:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img2.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1W8.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157860iF9159FF028AFC30B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1W8.jpg" alt="0683p000009M1W8.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2- I would like to store the amount of "D" or "N" generated by this filter to be used in a context.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sorry for my english&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229280#M20259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count filter value in column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229281#M20260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; One of the easiest way is to use a tjavarow after tMap to do the count. Please note that this is one among many solutions you can create for this scenario. The steps are as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a) Create two context variables called D_count and N_count and assign the initial values as zero.&lt;/P&gt;
&lt;P&gt;b)&amp;nbsp;Connect a tjavarow after tMap and assign all the output columns as pass through fields from input columns. You can use automapping functionality in tjavarow since your schema remains same&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; eg:- output_row.filler=input_row.filler&lt;/P&gt;
&lt;P&gt;c)&amp;nbsp;Add a if condition at the end of mapping in javarow to check the value of FLAG_VENDA. The pseudo code is as shown below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (&lt;SPAN&gt;FLAG_VENDA.equals("D))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.D_count=context.D_count+1;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to add the condition for both values (D and N) and you will get the counts to context variables for later use &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please make sure that you are not having any null values to this field as equals() function will throw error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Warm Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nikhil Thampi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 04:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229281#M20260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-13T04:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count filter value in column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229282#M20261</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have similar query to count the ID from the source file and seperate them in to 2 different columns as Single &amp;amp; Multiple Entry becoz ID will be unique for multiple entries &amp;amp; some ID do not have multiple entries. I want to get the count details based on the Numbers and segrate that value in seperate column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it feasible ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Angel&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 04:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-filter-value-in-column/m-p/2229282#M20261</guid>
      <dc:creator>dramya</dc:creator>
      <dc:date>2020-05-06T04:42:24Z</dc:date>
    </item>
  </channel>
</rss>

