<?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: Counting true/false occurences on XML in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300643#M72849</link>
    <description>&lt;P&gt;Thanks I have a begin on something now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for the values "gold" and "vip" separately but how to count them together?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried  to make the filter in a tXMLMap to have on one flow the "gold" values and on the other the "vip"values both followed by a tAggregateRow but then it doesn't seem possible to use a tUnite to group them. &lt;/P&gt;&lt;P&gt;Same with tReplicate ==&amp;gt; tFilterRow ==&amp;gt; tAggregateRow : impossible to use tUnite after ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 10:33:48 GMT</pubDate>
    <dc:creator>FPouget1651761130</dc:creator>
    <dc:date>2022-05-06T10:33:48Z</dc:date>
    <item>
      <title>Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300641#M72847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to count specifics occurences on XML ("true" or "false") and get the results in a table&lt;/P&gt;&lt;P&gt;I try using a tXMLMap but so far without success.&lt;/P&gt;&lt;P&gt;Any idea where I can lookinf for?&lt;/P&gt;&lt;P&gt;&lt;B&gt;My XML:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;customers&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;customer id="1"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;customerStatus vip="false" gold="false"/&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/customer&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;customer id="2"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;customerStatus vip="true" gold="false"/&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/customer&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;customer id="3"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;customerStatus vip="true" gold="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/customer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/customers&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Wishes result:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;| vip | gold|&lt;/P&gt;&lt;P&gt;| 2 | 1 |&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300641#M72847</guid>
      <dc:creator>FPouget1651761130</dc:creator>
      <dc:date>2022-05-05T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300642#M72848</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Using a tFileInputXML to read this XML file and extract vip and gold value,  filter the 'true' value on tFilterRow and count it with tAggregateRow. &lt;/P&gt;&lt;P&gt;Please try and let me know if you have any questions. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300642#M72848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-06T04:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300643#M72849</link>
      <description>&lt;P&gt;Thanks I have a begin on something now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for the values "gold" and "vip" separately but how to count them together?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried  to make the filter in a tXMLMap to have on one flow the "gold" values and on the other the "vip"values both followed by a tAggregateRow but then it doesn't seem possible to use a tUnite to group them. &lt;/P&gt;&lt;P&gt;Same with tReplicate ==&amp;gt; tFilterRow ==&amp;gt; tAggregateRow : impossible to use tUnite after ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 10:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300643#M72849</guid>
      <dc:creator>FPouget1651761130</dc:creator>
      <dc:date>2022-05-06T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300644#M72850</link>
      <description>&lt;P&gt;It is impossible to use tUnite after, this is not allowed to do in a cycle flow.  As a workaround, you can store the counting result to global variable or context vairalbe on a tJavaRow, and then generate a new row for these two counting result on a tFixedFlowInput in next subjob.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;....AggreGateRow--main--tJavaRow1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFixeFlowInput--main--tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJavaRow1:&lt;/P&gt;&lt;P&gt;context.sum_of_glod=input_row.gold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tFixedFlowInput, define two columns:vip and glod, set their values with corresponding context variable. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Song&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 03:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300644#M72850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-07T03:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300645#M72851</link>
      <description>&lt;P&gt;Thanks fot the tips&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did:&lt;/P&gt;&lt;P&gt;tFileInputXml -&amp;gt; tXMLMap &lt;/P&gt;&lt;UL&gt;&lt;LI&gt; -&amp;gt; tAggregateRow -&amp;gt; tfileOutputDelimited_1&lt;/LI&gt;&lt;LI&gt; -&amp;gt; tAggregateRow -&amp;gt; tfileOutputDelimited_2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFileInputDelimited_1 --main-- &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;                                    tMap -&amp;gt; tfileOutputDelimited_3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tFileInputDelimited_2 --Lookup--&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300645#M72851</guid>
      <dc:creator>FPouget1651761130</dc:creator>
      <dc:date>2022-05-11T07:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300646#M72852</link>
      <description>&lt;P&gt;Thanks for your feedback!  Personally, I'd like to store small temporary datasets in memory rather than writing to the filesystem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 08:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300646#M72852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T08:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300647#M72853</link>
      <description>&lt;P&gt;my sample is small but my use case is huge &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 08:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300647#M72853</guid>
      <dc:creator>FPouget1651761130</dc:creator>
      <dc:date>2022-05-11T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Counting true/false occurences on XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300648#M72854</link>
      <description>&lt;P&gt;This makes sense!  In addition, remove the temporary file in the end of job if it isn't used any more; use context variable as file path if the job will be migrated to other environment, so that you can assign a new file path through job executable file if needed. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Counting-true-false-occurences-on-XML/m-p/2300648#M72854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T09:27:03Z</dc:date>
    </item>
  </channel>
</rss>

