<?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: How to generate input file statistics using Talend 7.3 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371861#M134756</link>
    <description>&lt;P&gt;if the table is in a database, this may also work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select field,&lt;/P&gt;&lt;P&gt;count( distinct case when results = 'null' then null else to_number(&amp;nbsp;results ) end&amp;nbsp;&amp;nbsp;) count_unique_values,&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 1 else 0 end&amp;nbsp;) count_nulls,&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;when sum(&amp;nbsp;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&amp;nbsp;) over (&amp;nbsp;partition by field) = 0&lt;/P&gt;&lt;P&gt;then 0&lt;/P&gt;&lt;P&gt;else sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&lt;/P&gt;&lt;P&gt;/ sum(&amp;nbsp;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&amp;nbsp;) over (&amp;nbsp;partition by field)&lt;/P&gt;&lt;P&gt;end&amp;nbsp;&amp;nbsp;population_percentage&lt;/P&gt;&lt;P&gt;from (&lt;/P&gt;&lt;P&gt;select case when col1 is null then 'null' else '' || col1 end col1,&amp;nbsp;&amp;nbsp;&amp;nbsp;/* convert to text to include nulls&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;case when col2 is null then 'null' else '' || col2 end col2,&lt;/P&gt;&lt;P&gt;case when col3 is null then 'null' else '' || col3 end col3,&lt;/P&gt;&lt;P&gt;case when col4 is null then 'null' else '' || col4 end col4&lt;/P&gt;&lt;P&gt;from test_unpivot&lt;/P&gt;&lt;P&gt;)&amp;nbsp;unpivot&lt;/P&gt;&lt;P&gt;(&amp;nbsp;&amp;nbsp;&amp;nbsp;results for field in ("COL1","COL2","COL3","COL4")&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;group by field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 01:20:32 GMT</pubDate>
    <dc:creator>rphilips7161</dc:creator>
    <dc:date>2021-10-21T01:20:32Z</dc:date>
    <item>
      <title>How to generate input file statistics using Talend 7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371859#M134754</link>
      <description>&lt;P&gt;I have an input file&lt;/P&gt;&lt;P&gt;col1, col2, col3,col4&lt;/P&gt;&lt;P&gt;1,0,3,&lt;/P&gt;&lt;P&gt;3,1,0,&lt;/P&gt;&lt;P&gt;4,2,0,&lt;/P&gt;&lt;P&gt;I need to prepare output in the below format&lt;/P&gt;&lt;P&gt;field, count_unique_values, count_nulls,population_percentage&lt;/P&gt;&lt;P&gt;col1,3,0,100%&lt;/P&gt;&lt;P&gt;col2,3,0,100%&lt;/P&gt;&lt;P&gt;col3,2,0,100%&lt;/P&gt;&lt;P&gt;col4,0,3,0%&lt;/P&gt;&lt;P&gt;Please advise how to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371859#M134754</guid>
      <dc:creator>mgoel</dc:creator>
      <dc:date>2024-11-15T23:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate input file statistics using Talend 7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371860#M134755</link>
      <description>&lt;P&gt;The best way is using the component tAggregateRow, With this component you can create measures you have requested.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 14:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371860#M134755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-20T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate input file statistics using Talend 7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371861#M134756</link>
      <description>&lt;P&gt;if the table is in a database, this may also work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select field,&lt;/P&gt;&lt;P&gt;count( distinct case when results = 'null' then null else to_number(&amp;nbsp;results ) end&amp;nbsp;&amp;nbsp;) count_unique_values,&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 1 else 0 end&amp;nbsp;) count_nulls,&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;when sum(&amp;nbsp;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&amp;nbsp;) over (&amp;nbsp;partition by field) = 0&lt;/P&gt;&lt;P&gt;then 0&lt;/P&gt;&lt;P&gt;else sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&lt;/P&gt;&lt;P&gt;/ sum(&amp;nbsp;sum(&amp;nbsp;&amp;nbsp;case when results = 'null' then 0 else 1 end&amp;nbsp;)&amp;nbsp;) over (&amp;nbsp;partition by field)&lt;/P&gt;&lt;P&gt;end&amp;nbsp;&amp;nbsp;population_percentage&lt;/P&gt;&lt;P&gt;from (&lt;/P&gt;&lt;P&gt;select case when col1 is null then 'null' else '' || col1 end col1,&amp;nbsp;&amp;nbsp;&amp;nbsp;/* convert to text to include nulls&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;case when col2 is null then 'null' else '' || col2 end col2,&lt;/P&gt;&lt;P&gt;case when col3 is null then 'null' else '' || col3 end col3,&lt;/P&gt;&lt;P&gt;case when col4 is null then 'null' else '' || col4 end col4&lt;/P&gt;&lt;P&gt;from test_unpivot&lt;/P&gt;&lt;P&gt;)&amp;nbsp;unpivot&lt;/P&gt;&lt;P&gt;(&amp;nbsp;&amp;nbsp;&amp;nbsp;results for field in ("COL1","COL2","COL3","COL4")&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;group by field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 01:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371861#M134756</guid>
      <dc:creator>rphilips7161</dc:creator>
      <dc:date>2021-10-21T01:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate input file statistics using Talend 7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371862#M134757</link>
      <description>&lt;P&gt;nopes, it is not in database. input is a file.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 05:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-input-file-statistics-using-Talend-7-3/m-p/2371862#M134757</guid>
      <dc:creator>mgoel</dc:creator>
      <dc:date>2021-10-21T05:06:10Z</dc:date>
    </item>
  </channel>
</rss>

